zhaoqiaobo
10 months ago
16 changed files with 2 additions and 644 deletions
@ -1,20 +0,0 @@ |
|||||||
<?xml version="1.0" encoding="UTF-8"?> |
|
||||||
<project xmlns="http://maven.apache.org/POM/4.0.0" |
|
||||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
|
||||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
|
||||||
<parent> |
|
||||||
<artifactId>logpm-factory-data</artifactId> |
|
||||||
<groupId>org.springblade</groupId> |
|
||||||
<version>3.2.0.RELEASE</version> |
|
||||||
</parent> |
|
||||||
<modelVersion>4.0.0</modelVersion> |
|
||||||
<artifactId>logpm-factory-data-mengtian</artifactId> |
|
||||||
<version>${bladex.project.version}</version> |
|
||||||
<packaging>jar</packaging> |
|
||||||
<properties> |
|
||||||
<maven.compiler.source>8</maven.compiler.source> |
|
||||||
<maven.compiler.target>8</maven.compiler.target> |
|
||||||
</properties> |
|
||||||
|
|
||||||
|
|
||||||
</project> |
|
@ -1,20 +0,0 @@ |
|||||||
<?xml version="1.0" encoding="UTF-8"?> |
|
||||||
<project xmlns="http://maven.apache.org/POM/4.0.0" |
|
||||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
|
||||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
|
||||||
<parent> |
|
||||||
<artifactId>logpm-factory-data</artifactId> |
|
||||||
<groupId>org.springblade</groupId> |
|
||||||
<version>3.2.0.RELEASE</version> |
|
||||||
</parent> |
|
||||||
<modelVersion>4.0.0</modelVersion> |
|
||||||
<packaging>jar</packaging> |
|
||||||
<version>${bladex.project.version}</version> |
|
||||||
<artifactId>logpm-factory-data-oppein</artifactId> |
|
||||||
|
|
||||||
<properties> |
|
||||||
<maven.compiler.source>8</maven.compiler.source> |
|
||||||
<maven.compiler.target>8</maven.compiler.target> |
|
||||||
</properties> |
|
||||||
|
|
||||||
</project> |
|
@ -1,47 +0,0 @@ |
|||||||
<?xml version="1.0" encoding="UTF-8"?> |
|
||||||
<project xmlns="http://maven.apache.org/POM/4.0.0" |
|
||||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
|
||||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
|
||||||
<parent> |
|
||||||
<artifactId>logpm-factory-data</artifactId> |
|
||||||
<groupId>org.springblade</groupId> |
|
||||||
<version>3.2.0.RELEASE</version> |
|
||||||
</parent> |
|
||||||
<modelVersion>4.0.0</modelVersion> |
|
||||||
<version>${bladex.project.version}</version> |
|
||||||
<artifactId>logpm-factory-data-piano</artifactId> |
|
||||||
<packaging>jar</packaging> |
|
||||||
<properties> |
|
||||||
<maven.compiler.source>8</maven.compiler.source> |
|
||||||
<maven.compiler.target>8</maven.compiler.target> |
|
||||||
</properties> |
|
||||||
|
|
||||||
<dependencies> |
|
||||||
<dependency> |
|
||||||
<groupId>org.springblade</groupId> |
|
||||||
<artifactId>blade-core-boot</artifactId> |
|
||||||
</dependency> |
|
||||||
<dependency> |
|
||||||
<groupId>org.springblade</groupId> |
|
||||||
<artifactId>blade-core-auto</artifactId> |
|
||||||
<scope>provided</scope> |
|
||||||
</dependency> |
|
||||||
</dependencies> |
|
||||||
|
|
||||||
<build> |
|
||||||
<plugins> |
|
||||||
<plugin> |
|
||||||
<groupId>io.fabric8</groupId> |
|
||||||
<artifactId>docker-maven-plugin</artifactId> |
|
||||||
<configuration> |
|
||||||
<skip>${docker.fabric.skip}</skip> |
|
||||||
</configuration> |
|
||||||
</plugin> |
|
||||||
<plugin> |
|
||||||
<groupId>org.apache.maven.plugins</groupId> |
|
||||||
<artifactId>maven-antrun-plugin</artifactId> |
|
||||||
</plugin> |
|
||||||
</plugins> |
|
||||||
</build> |
|
||||||
|
|
||||||
</project> |
|
@ -1,20 +0,0 @@ |
|||||||
package com.logpm.factorydata; |
|
||||||
|
|
||||||
import org.springblade.common.constant.ModuleNameConstant; |
|
||||||
import org.springblade.core.cloud.client.BladeCloudApplication; |
|
||||||
import org.springblade.core.launch.BladeApplication; |
|
||||||
|
|
||||||
/** |
|
||||||
* 工厂数据基础服务启动类 |
|
||||||
* |
|
||||||
* @Author zqb |
|
||||||
* @Date 2024/3/14 |
|
||||||
**/ |
|
||||||
@BladeCloudApplication |
|
||||||
public class PianoFactoryDataApplication { |
|
||||||
|
|
||||||
public static void main(String[] args) { |
|
||||||
BladeApplication.run(ModuleNameConstant.LOGPM_FACTORY_DATA_BASE_NAME, PianoFactoryDataApplication.class, args); |
|
||||||
} |
|
||||||
|
|
||||||
} |
|
@ -1,73 +0,0 @@ |
|||||||
#服务器端口 |
|
||||||
server: |
|
||||||
port: 8200 |
|
||||||
|
|
||||||
#数据源配置 |
|
||||||
#spring: |
|
||||||
# datasource: |
|
||||||
# url: ${blade.datasource.dev.url} |
|
||||||
# username: ${blade.datasource.dev.username} |
|
||||||
# password: ${blade.datasource.dev.password} |
|
||||||
|
|
||||||
spring: |
|
||||||
#rabbitmq配置 |
|
||||||
rabbitmq: |
|
||||||
host: 192.168.2.46 |
|
||||||
port: 5672 |
|
||||||
username: admin |
|
||||||
password: admin |
|
||||||
#虚拟host 可以不设置,使用server默认host |
|
||||||
virtual-host: / |
|
||||||
#确认消息已发送到队列(Queue) |
|
||||||
publisher-returns: true |
|
||||||
publisher-confirm-type: correlated |
|
||||||
# 手动提交消息 |
|
||||||
listener: |
|
||||||
simple: |
|
||||||
acknowledge-mode: auto |
|
||||||
default-requeue-rejected: false |
|
||||||
retry: |
|
||||||
enabled: true # 开启消费者失败重试 |
|
||||||
initial-interval: 1000 # 初识的失败等待时长为1秒 |
|
||||||
multiplier: 1 # 失败的等待时长倍数,下次等待时长 = multiplier * last-interval |
|
||||||
max-attempts: 3 # 最大重试次数 |
|
||||||
stateless: true # true无状态;false有状态。如果业务中包含事务,这里改为false |
|
||||||
direct: |
|
||||||
acknowledge-mode: manual |
|
||||||
template: |
|
||||||
mandatory: true |
|
||||||
|
|
||||||
#排除DruidDataSourceAutoConfigure |
|
||||||
autoconfigure: |
|
||||||
exclude: com.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceAutoConfigure |
|
||||||
datasource: |
|
||||||
dynamic: |
|
||||||
druid: |
|
||||||
#通用校验配置 |
|
||||||
validation-query: select 1 |
|
||||||
#启用sql日志拦截器 |
|
||||||
proxy-filters: |
|
||||||
- sqlLogInterceptor |
|
||||||
#设置默认的数据源或者数据源组,默认值即为master |
|
||||||
primary: master |
|
||||||
datasource: |
|
||||||
master: |
|
||||||
druid: |
|
||||||
#独立校验配置 |
|
||||||
validation-query: select 1 |
|
||||||
#oracle校验 |
|
||||||
#validation-query: select 1 from dual |
|
||||||
url: ${blade.datasource.factory.master.url} |
|
||||||
username: ${blade.datasource.factory.master.username} |
|
||||||
password: ${blade.datasource.factory.master.password} |
|
||||||
slave: |
|
||||||
druid: |
|
||||||
#独立校验配置 |
|
||||||
validation-query: select 1 |
|
||||||
#oracle校验 |
|
||||||
#validation-query: select 1 from dual |
|
||||||
url: ${blade.datasource.factory.slave.url} |
|
||||||
username: ${blade.datasource.factory.slave.username} |
|
||||||
password: ${blade.datasource.factory.slave.password} |
|
||||||
|
|
||||||
|
|
@ -1,57 +0,0 @@ |
|||||||
#服务器端口 |
|
||||||
server: |
|
||||||
port: 8200 |
|
||||||
|
|
||||||
#数据源配置 |
|
||||||
#spring: |
|
||||||
# datasource: |
|
||||||
# url: ${blade.datasource.prod.url} |
|
||||||
# username: ${blade.datasource.prod.username} |
|
||||||
# password: ${blade.datasource.prod.password} |
|
||||||
|
|
||||||
spring: |
|
||||||
#排除DruidDataSourceAutoConfigure |
|
||||||
autoconfigure: |
|
||||||
exclude: com.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceAutoConfigure |
|
||||||
datasource: |
|
||||||
dynamic: |
|
||||||
druid: |
|
||||||
proxy-filters: |
|
||||||
- sqlLogInterceptor |
|
||||||
#设置默认的数据源或者数据源组,默认值即为master |
|
||||||
primary: master |
|
||||||
datasource: |
|
||||||
master: |
|
||||||
url: ${blade.datasource.factory.master.url} |
|
||||||
username: ${blade.datasource.factory.master.username} |
|
||||||
password: ${blade.datasource.factory.master.password} |
|
||||||
slave: |
|
||||||
url: ${blade.datasource.factory.slave.url} |
|
||||||
username: ${blade.datasource.factory.slave.username} |
|
||||||
password: ${blade.datasource.factory.slave.password} |
|
||||||
#rabbitmq配置 |
|
||||||
rabbitmq: |
|
||||||
host: 172.16.128.145 |
|
||||||
port: 5672 |
|
||||||
username: admin |
|
||||||
password: Slwk@123654 |
|
||||||
#虚拟host 可以不设置,使用server默认host |
|
||||||
virtual-host: / |
|
||||||
#确认消息已发送到队列(Queue) |
|
||||||
publisher-returns: true |
|
||||||
publisher-confirm-type: correlated |
|
||||||
# 手动提交消息 |
|
||||||
listener: |
|
||||||
simple: |
|
||||||
acknowledge-mode: auto |
|
||||||
default-requeue-rejected: false |
|
||||||
retry: |
|
||||||
enabled: true # 开启消费者失败重试 |
|
||||||
initial-interval: 1000 # 初识的失败等待时长为1秒 |
|
||||||
multiplier: 1 # 失败的等待时长倍数,下次等待时长 = multiplier * last-interval |
|
||||||
max-attempts: 3 # 最大重试次数 |
|
||||||
stateless: true # true无状态;false有状态。如果业务中包含事务,这里改为false |
|
||||||
direct: |
|
||||||
acknowledge-mode: manual |
|
||||||
template: |
|
||||||
mandatory: true |
|
@ -1,59 +0,0 @@ |
|||||||
#服务器端口 |
|
||||||
server: |
|
||||||
port: 6004 |
|
||||||
|
|
||||||
#数据源配置 |
|
||||||
#spring: |
|
||||||
# datasource: |
|
||||||
# url: ${blade.datasource.test.url} |
|
||||||
# username: ${blade.datasource.test.username} |
|
||||||
# password: ${blade.datasource.test.password} |
|
||||||
|
|
||||||
spring: |
|
||||||
#排除DruidDataSourceAutoConfigure |
|
||||||
autoconfigure: |
|
||||||
exclude: com.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceAutoConfigure |
|
||||||
datasource: |
|
||||||
dynamic: |
|
||||||
druid: |
|
||||||
proxy-filters: |
|
||||||
- sqlLogInterceptor |
|
||||||
#设置默认的数据源或者数据源组,默认值即为master |
|
||||||
primary: master |
|
||||||
datasource: |
|
||||||
master: |
|
||||||
url: ${blade.datasource.factory.master.url} |
|
||||||
username: ${blade.datasource.factory.master.username} |
|
||||||
password: ${blade.datasource.factory.master.password} |
|
||||||
slave: |
|
||||||
url: ${blade.datasource.factory.slave.url} |
|
||||||
username: ${blade.datasource.factory.slave.username} |
|
||||||
password: ${blade.datasource.factory.slave.password} |
|
||||||
#rabbitmq配置 |
|
||||||
rabbitmq: |
|
||||||
host: 192.168.2.110 |
|
||||||
port: 5672 |
|
||||||
username: admin |
|
||||||
password: Slwk@123654 |
|
||||||
#虚拟host 可以不设置,使用server默认host |
|
||||||
virtual-host: / |
|
||||||
#确认消息已发送到队列(Queue) |
|
||||||
publisher-returns: true |
|
||||||
publisher-confirm-type: correlated |
|
||||||
# 手动提交消息 |
|
||||||
listener: |
|
||||||
simple: |
|
||||||
acknowledge-mode: auto |
|
||||||
default-requeue-rejected: false |
|
||||||
retry: |
|
||||||
enabled: true # 开启消费者失败重试 |
|
||||||
initial-interval: 1000 # 初识的失败等待时长为1秒 |
|
||||||
multiplier: 1 # 失败的等待时长倍数,下次等待时长 = multiplier * last-interval |
|
||||||
max-attempts: 3 # 最大重试次数 |
|
||||||
stateless: true # true无状态;false有状态。如果业务中包含事务,这里改为false |
|
||||||
direct: |
|
||||||
acknowledge-mode: manual |
|
||||||
template: |
|
||||||
mandatory: true |
|
||||||
|
|
||||||
|
|
@ -1,50 +0,0 @@ |
|||||||
#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 |
|
||||||
|
|
@ -1,40 +0,0 @@ |
|||||||
<?xml version="1.0" encoding="UTF-8"?> |
|
||||||
<configuration scan="false" debug="false"> |
|
||||||
|
|
||||||
<contextName>logback</contextName> |
|
||||||
<property name="log.path" value="../data/logpm-factory/logs/logs.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> |
|
@ -1,47 +0,0 @@ |
|||||||
<?xml version="1.0" encoding="UTF-8"?> |
|
||||||
<project xmlns="http://maven.apache.org/POM/4.0.0" |
|
||||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
|
||||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
|
||||||
<parent> |
|
||||||
<artifactId>blade-service</artifactId> |
|
||||||
<groupId>org.springblade</groupId> |
|
||||||
<version>3.2.0.RELEASE</version> |
|
||||||
</parent> |
|
||||||
<modelVersion>4.0.0</modelVersion> |
|
||||||
<version>${bladex.project.version}</version> |
|
||||||
<artifactId>logpm-factory-data-snimay</artifactId> |
|
||||||
<packaging>jar</packaging> |
|
||||||
<properties> |
|
||||||
<maven.compiler.source>8</maven.compiler.source> |
|
||||||
<maven.compiler.target>8</maven.compiler.target> |
|
||||||
</properties> |
|
||||||
|
|
||||||
<dependencies> |
|
||||||
<dependency> |
|
||||||
<groupId>org.springblade</groupId> |
|
||||||
<artifactId>blade-core-boot</artifactId> |
|
||||||
</dependency> |
|
||||||
<dependency> |
|
||||||
<groupId>org.springblade</groupId> |
|
||||||
<artifactId>blade-core-auto</artifactId> |
|
||||||
<scope>provided</scope> |
|
||||||
</dependency> |
|
||||||
</dependencies> |
|
||||||
|
|
||||||
<build> |
|
||||||
<plugins> |
|
||||||
<plugin> |
|
||||||
<groupId>io.fabric8</groupId> |
|
||||||
<artifactId>docker-maven-plugin</artifactId> |
|
||||||
<configuration> |
|
||||||
<skip>${docker.fabric.skip}</skip> |
|
||||||
</configuration> |
|
||||||
</plugin> |
|
||||||
<plugin> |
|
||||||
<groupId>org.apache.maven.plugins</groupId> |
|
||||||
<artifactId>maven-antrun-plugin</artifactId> |
|
||||||
</plugin> |
|
||||||
</plugins> |
|
||||||
</build> |
|
||||||
|
|
||||||
</project> |
|
@ -1,45 +0,0 @@ |
|||||||
#服务器端口 |
|
||||||
server: |
|
||||||
port: 8900 |
|
||||||
|
|
||||||
#数据源配置 |
|
||||||
#spring: |
|
||||||
# datasource: |
|
||||||
# url: ${blade.datasource.dev.url} |
|
||||||
# username: ${blade.datasource.dev.username} |
|
||||||
# password: ${blade.datasource.dev.password} |
|
||||||
|
|
||||||
spring: |
|
||||||
#排除DruidDataSourceAutoConfigure |
|
||||||
autoconfigure: |
|
||||||
exclude: com.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceAutoConfigure |
|
||||||
datasource: |
|
||||||
dynamic: |
|
||||||
druid: |
|
||||||
#通用校验配置 |
|
||||||
validation-query: select 1 |
|
||||||
#启用sql日志拦截器 |
|
||||||
proxy-filters: |
|
||||||
- sqlLogInterceptor |
|
||||||
#设置默认的数据源或者数据源组,默认值即为master |
|
||||||
primary: master |
|
||||||
datasource: |
|
||||||
master: |
|
||||||
druid: |
|
||||||
#独立校验配置 |
|
||||||
validation-query: select 1 |
|
||||||
#oracle校验 |
|
||||||
#validation-query: select 1 from dual |
|
||||||
url: ${blade.datasource.report.master.url} |
|
||||||
username: ${blade.datasource.report.master.username} |
|
||||||
password: ${blade.datasource.report.master.password} |
|
||||||
slave: |
|
||||||
druid: |
|
||||||
#独立校验配置 |
|
||||||
validation-query: select 1 |
|
||||||
#oracle校验 |
|
||||||
#validation-query: select 1 from dual |
|
||||||
url: ${blade.datasource.report.slave.url} |
|
||||||
username: ${blade.datasource.report.slave.username} |
|
||||||
password: ${blade.datasource.report.slave.password} |
|
||||||
|
|
@ -1,45 +0,0 @@ |
|||||||
#服务器端口 |
|
||||||
server: |
|
||||||
port: 8900 |
|
||||||
|
|
||||||
#数据源配置 |
|
||||||
#spring: |
|
||||||
# datasource: |
|
||||||
# url: ${blade.datasource.dev.url} |
|
||||||
# username: ${blade.datasource.dev.username} |
|
||||||
# password: ${blade.datasource.dev.password} |
|
||||||
|
|
||||||
spring: |
|
||||||
#排除DruidDataSourceAutoConfigure |
|
||||||
autoconfigure: |
|
||||||
exclude: com.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceAutoConfigure |
|
||||||
datasource: |
|
||||||
dynamic: |
|
||||||
druid: |
|
||||||
#通用校验配置 |
|
||||||
validation-query: select 1 |
|
||||||
#启用sql日志拦截器 |
|
||||||
proxy-filters: |
|
||||||
- sqlLogInterceptor |
|
||||||
#设置默认的数据源或者数据源组,默认值即为master |
|
||||||
primary: master |
|
||||||
datasource: |
|
||||||
master: |
|
||||||
druid: |
|
||||||
#独立校验配置 |
|
||||||
validation-query: select 1 |
|
||||||
#oracle校验 |
|
||||||
#validation-query: select 1 from dual |
|
||||||
url: ${blade.datasource.report.master.url} |
|
||||||
username: ${blade.datasource.report.master.username} |
|
||||||
password: ${blade.datasource.report.master.password} |
|
||||||
slave: |
|
||||||
druid: |
|
||||||
#独立校验配置 |
|
||||||
validation-query: select 1 |
|
||||||
#oracle校验 |
|
||||||
#validation-query: select 1 from dual |
|
||||||
url: ${blade.datasource.report.slave.url} |
|
||||||
username: ${blade.datasource.report.slave.username} |
|
||||||
password: ${blade.datasource.report.slave.password} |
|
||||||
|
|
@ -1,45 +0,0 @@ |
|||||||
#服务器端口 |
|
||||||
server: |
|
||||||
port: 8900 |
|
||||||
|
|
||||||
#数据源配置 |
|
||||||
#spring: |
|
||||||
# datasource: |
|
||||||
# url: ${blade.datasource.dev.url} |
|
||||||
# username: ${blade.datasource.dev.username} |
|
||||||
# password: ${blade.datasource.dev.password} |
|
||||||
|
|
||||||
spring: |
|
||||||
#排除DruidDataSourceAutoConfigure |
|
||||||
autoconfigure: |
|
||||||
exclude: com.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceAutoConfigure |
|
||||||
datasource: |
|
||||||
dynamic: |
|
||||||
druid: |
|
||||||
#通用校验配置 |
|
||||||
validation-query: select 1 |
|
||||||
#启用sql日志拦截器 |
|
||||||
proxy-filters: |
|
||||||
- sqlLogInterceptor |
|
||||||
#设置默认的数据源或者数据源组,默认值即为master |
|
||||||
primary: master |
|
||||||
datasource: |
|
||||||
master: |
|
||||||
druid: |
|
||||||
#独立校验配置 |
|
||||||
validation-query: select 1 |
|
||||||
#oracle校验 |
|
||||||
#validation-query: select 1 from dual |
|
||||||
url: ${blade.datasource.report.master.url} |
|
||||||
username: ${blade.datasource.report.master.username} |
|
||||||
password: ${blade.datasource.report.master.password} |
|
||||||
slave: |
|
||||||
druid: |
|
||||||
#独立校验配置 |
|
||||||
validation-query: select 1 |
|
||||||
#oracle校验 |
|
||||||
#validation-query: select 1 from dual |
|
||||||
url: ${blade.datasource.report.slave.url} |
|
||||||
username: ${blade.datasource.report.slave.username} |
|
||||||
password: ${blade.datasource.report.slave.password} |
|
||||||
|
|
@ -1,32 +0,0 @@ |
|||||||
#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://8.137.14.82:9000 |
|
||||||
access-key: minio |
|
||||||
secret-key: 123123123 |
|
||||||
bucket-name: bladex |
|
||||||
|
|
||||||
|
|
||||||
logging: |
|
||||||
config: classpath:logback.xml |
|
||||||
|
|
||||||
|
|
||||||
spring: |
|
||||||
main: |
|
||||||
allow-circular-references: true |
|
||||||
|
|
||||||
|
|
@ -1,40 +0,0 @@ |
|||||||
<?xml version="1.0" encoding="UTF-8"?> |
|
||||||
<configuration scan="false" debug="false"> |
|
||||||
|
|
||||||
<contextName>logback</contextName> |
|
||||||
<property name="log.path" value="./data/logpm-basic/logs/logs.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