14 changed files with 4104 additions and 32 deletions
@ -0,0 +1,13 @@ |
|||||||
|
FROM bladex/alpine-java:openjdk8-openj9_cn_slim |
||||||
|
|
||||||
|
MAINTAINER bladejava@qq.com |
||||||
|
|
||||||
|
RUN mkdir -p /blade/basic |
||||||
|
|
||||||
|
WORKDIR /blade/basic |
||||||
|
|
||||||
|
EXPOSE 7009 |
||||||
|
|
||||||
|
ADD ./target/blade-xxljob-admin.jar ./app.jar |
||||||
|
|
||||||
|
ENTRYPOINT ["java", "-Djava.security.egd=file:/dev/./urandom", "-jar", "app.jar"] |
@ -0,0 +1,38 @@ |
|||||||
|
/* |
||||||
|
* Copyright (c) 2018-2028, Chill Zhuang All rights reserved. |
||||||
|
* |
||||||
|
* Redistribution and use in source and binary forms, with or without |
||||||
|
* modification, are permitted provided that the following conditions are met: |
||||||
|
* |
||||||
|
* Redistributions of source code must retain the above copyright notice, |
||||||
|
* this list of conditions and the following disclaimer. |
||||||
|
* Redistributions in binary form must reproduce the above copyright |
||||||
|
* notice, this list of conditions and the following disclaimer in the |
||||||
|
* documentation and/or other materials provided with the distribution. |
||||||
|
* Neither the name of the dreamlu.net developer nor the names of its |
||||||
|
* contributors may be used to endorse or promote products derived from |
||||||
|
* this software without specific prior written permission. |
||||||
|
* Author: Chill 庄骞 (smallchill@163.com) |
||||||
|
*/ |
||||||
|
package com.logpm.basic; |
||||||
|
|
||||||
|
import org.springblade.common.constant.LauncherConstant; |
||||||
|
|
||||||
|
import org.springblade.core.cloud.client.BladeCloudApplication; |
||||||
|
import org.springblade.core.cloud.feign.EnableBladeFeign; |
||||||
|
import org.springblade.core.launch.BladeApplication; |
||||||
|
|
||||||
|
/** |
||||||
|
* Basic启动器 |
||||||
|
* |
||||||
|
* @author Chill |
||||||
|
*/ |
||||||
|
@BladeCloudApplication |
||||||
|
public class BasicApplication { |
||||||
|
|
||||||
|
public static void main(String[] args) { |
||||||
|
BladeApplication.run(LauncherConstant.APPLICATION_BASIC_NAME.concat("-lmy"), BasicApplication.class, args); |
||||||
|
} |
||||||
|
|
||||||
|
} |
||||||
|
|
@ -0,0 +1,19 @@ |
|||||||
|
package com.logpm.basic.driver.controller; |
||||||
|
|
||||||
|
import io.swagger.annotations.Api; |
||||||
|
import lombok.AllArgsConstructor; |
||||||
|
import org.springframework.web.bind.annotation.RequestMapping; |
||||||
|
import org.springframework.web.bind.annotation.RestController; |
||||||
|
|
||||||
|
/** |
||||||
|
* 司机信息 控制器 |
||||||
|
* |
||||||
|
* @author lmy |
||||||
|
* @since 2023-04-23 |
||||||
|
*/ |
||||||
|
@RestController |
||||||
|
@AllArgsConstructor |
||||||
|
@RequestMapping("/basic/driver") |
||||||
|
@Api(value = "司机信息接口", tags = "司机信息接口") |
||||||
|
public class DriverController { |
||||||
|
} |
@ -0,0 +1,17 @@ |
|||||||
|
package com.logpm.basic.equipment.forklift.controller; |
||||||
|
|
||||||
|
import lombok.AllArgsConstructor; |
||||||
|
import org.springframework.web.bind.annotation.RequestMapping; |
||||||
|
import org.springframework.web.bind.annotation.RestController; |
||||||
|
|
||||||
|
/** |
||||||
|
* s 控制器 |
||||||
|
* |
||||||
|
* @author lmy |
||||||
|
* @since 2023-04-23 |
||||||
|
*/ |
||||||
|
@RestController |
||||||
|
@AllArgsConstructor |
||||||
|
@RequestMapping("/basic/Forklift") |
||||||
|
public class ForkliftController { |
||||||
|
} |
@ -0,0 +1,11 @@ |
|||||||
|
package com.logpm.basic.equipment.pad.controller; |
||||||
|
|
||||||
|
import lombok.AllArgsConstructor; |
||||||
|
import org.springframework.web.bind.annotation.RequestMapping; |
||||||
|
import org.springframework.web.bind.annotation.RestController; |
||||||
|
|
||||||
|
@RestController |
||||||
|
@AllArgsConstructor |
||||||
|
@RequestMapping("/basic/Pad") |
||||||
|
public class PadController { |
||||||
|
} |
@ -0,0 +1,17 @@ |
|||||||
|
package com.logpm.basic.goodstrain.controller; |
||||||
|
|
||||||
|
import lombok.AllArgsConstructor; |
||||||
|
import org.springframework.web.bind.annotation.RequestMapping; |
||||||
|
import org.springframework.web.bind.annotation.RestController; |
||||||
|
|
||||||
|
/** |
||||||
|
* 货车信息 控制器 |
||||||
|
* |
||||||
|
* @author lmy |
||||||
|
* @since 2023-04-23 |
||||||
|
*/ |
||||||
|
@RestController |
||||||
|
@AllArgsConstructor |
||||||
|
@RequestMapping("/basic/GoodStain") |
||||||
|
public class GoodstrainController { |
||||||
|
} |
@ -0,0 +1,11 @@ |
|||||||
|
#服务器端口 |
||||||
|
server: |
||||||
|
port: 8300 |
||||||
|
|
||||||
|
#数据源配置 |
||||||
|
spring: |
||||||
|
datasource: |
||||||
|
url: ${blade.datasource.dev.url} |
||||||
|
username: ${blade.datasource.dev.username} |
||||||
|
password: ${blade.datasource.dev.password} |
||||||
|
|
@ -0,0 +1,12 @@ |
|||||||
|
#服务器端口 |
||||||
|
server: |
||||||
|
port: 8300 |
||||||
|
|
||||||
|
#数据源配置 |
||||||
|
spring: |
||||||
|
datasource: |
||||||
|
url: ${blade.datasource.prod.url} |
||||||
|
username: ${blade.datasource.prod.username} |
||||||
|
password: ${blade.datasource.prod.password} |
||||||
|
|
||||||
|
|
@ -0,0 +1,10 @@ |
|||||||
|
#服务器端口 |
||||||
|
server: |
||||||
|
port: 8300 |
||||||
|
|
||||||
|
#数据源配置 |
||||||
|
spring: |
||||||
|
datasource: |
||||||
|
url: ${blade.datasource.test.url} |
||||||
|
username: ${blade.datasource.test.username} |
||||||
|
password: ${blade.datasource.test.password} |
@ -0,0 +1,50 @@ |
|||||||
|
#mybatis-plus配置 |
||||||
|
mybatis-plus: |
||||||
|
mapper-locations: classpath:com/logpm/**/mapper/*Mapper.xml |
||||||
|
#实体扫描,多个package用逗号或者分号分隔 |
||||||
|
typeAliasesPackage: com.logpm.**.entity |
||||||
|
|
||||||
|
#swagger扫描路径配置 |
||||||
|
swagger: |
||||||
|
base-packages: |
||||||
|
- org.springblade |
||||||
|
- com.logpm |
||||||
|
|
||||||
|
#oss配置 |
||||||
|
oss: |
||||||
|
enabled: true |
||||||
|
name: minio |
||||||
|
tenant-mode: false |
||||||
|
endpoint: http://127.0.0.1:9000 |
||||||
|
access-key: D99KGE6ZTQXSATTJWU24 |
||||||
|
secret-key: QyVqGnhIQQE734UYSUFlGOZViE6+ZlDEfUG3NjhJ |
||||||
|
bucket-name: bladex |
||||||
|
|
||||||
|
#blade配置 |
||||||
|
blade: |
||||||
|
#本地文件上传 |
||||||
|
file: |
||||||
|
remote-mode: true |
||||||
|
upload-domain: http://localhost:8999 |
||||||
|
remote-path: /usr/share/nginx/html |
||||||
|
|
||||||
|
logging: |
||||||
|
config: classpath:logback.xml |
||||||
|
|
||||||
|
|
||||||
|
spring: |
||||||
|
main: |
||||||
|
allow-circular-references: true |
||||||
|
|
||||||
|
|
||||||
|
xxl: |
||||||
|
job: |
||||||
|
accessToken: '' |
||||||
|
admin: |
||||||
|
addresses: http://127.0.0.1:7009/xxl-job-admin |
||||||
|
executor: |
||||||
|
appname: logpm-factory-xxljob |
||||||
|
ip: 127.0.0.1 |
||||||
|
logpath: ../data/applogs/logpm-factory-xxljob/jobhandler |
||||||
|
logretentiondays: -1 |
||||||
|
port: 7018 |
@ -0,0 +1,40 @@ |
|||||||
|
<?xml version="1.0" encoding="UTF-8"?> |
||||||
|
<configuration scan="false" debug="false"> |
||||||
|
|
||||||
|
<contextName>logback</contextName> |
||||||
|
<property name="log.path" value="../data/applogs/ogpm-factory-xxljob/xxl-job-executor-sample-springboot.log"/> |
||||||
|
|
||||||
|
<!-- 彩色日志依赖的渲染类 --> |
||||||
|
<conversionRule conversionWord="clr" converterClass="org.springframework.boot.logging.logback.ColorConverter"/> |
||||||
|
<conversionRule conversionWord="wex" |
||||||
|
converterClass="org.springframework.boot.logging.logback.WhitespaceThrowableProxyConverter"/> |
||||||
|
<conversionRule conversionWord="wEx" |
||||||
|
converterClass="org.springframework.boot.logging.logback.ExtendedWhitespaceThrowableProxyConverter"/> |
||||||
|
<!-- 彩色日志格式 --> |
||||||
|
<property name="CONSOLE_LOG_PATTERN" |
||||||
|
value="${CONSOLE_LOG_PATTERN:-%clr(%d{yyyy-MM-dd HH:mm:ss.SSS}){faint} %clr(${LOG_LEVEL_PATTERN:-%5p}) %clr(${PID:- }){magenta} %clr(---){faint} %clr([%15.15t]){faint} %clr(%-40.40logger{39}){cyan} %clr(:){faint} %m%n${LOG_EXCEPTION_CONVERSION_WORD:-%wEx}}"/> |
||||||
|
<!-- 控制台输出 --> |
||||||
|
<appender name="console" class="ch.qos.logback.core.ConsoleAppender"> |
||||||
|
<encoder class="ch.qos.logback.classic.encoder.PatternLayoutEncoder"> |
||||||
|
<pattern>${CONSOLE_LOG_PATTERN}</pattern> |
||||||
|
<charset>utf8</charset> |
||||||
|
</encoder> |
||||||
|
</appender> |
||||||
|
|
||||||
|
<appender name="file" class="ch.qos.logback.core.rolling.RollingFileAppender"> |
||||||
|
<file>${log.path}</file> |
||||||
|
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy"> |
||||||
|
<fileNamePattern>${log.path}.%d{yyyy-MM-dd}.zip</fileNamePattern> |
||||||
|
</rollingPolicy> |
||||||
|
<encoder> |
||||||
|
<pattern>%date %level [%thread] %logger{36} [%file : %line] %msg%n |
||||||
|
</pattern> |
||||||
|
</encoder> |
||||||
|
</appender> |
||||||
|
|
||||||
|
<root level="info"> |
||||||
|
<appender-ref ref="console"/> |
||||||
|
<appender-ref ref="file"/> |
||||||
|
</root> |
||||||
|
|
||||||
|
</configuration> |
Loading…
Reference in new issue