89 lines
2.1 KiB
YAML
89 lines
2.1 KiB
YAML
server:
|
||
port: 18005
|
||
|
||
spring:
|
||
#数据库配置
|
||
datasource:
|
||
type: com.alibaba.druid.pool.DruidDataSource
|
||
driver-class-name: dm.jdbc.driver.DmDriver
|
||
url: jdbc:dm://127.0.0.1:5236?schema=SYSDBA
|
||
username: SYSDBA
|
||
password: 199999999
|
||
# url: jdbc:dm://10.42.6.142:5236?schema=SHZH
|
||
# username: SHZH
|
||
# password: Shzh_890
|
||
druid:
|
||
initialSize: 5
|
||
minIdle: 5
|
||
maxActive: 20
|
||
maxWait: 60000
|
||
timeBetweenEvictionRunsMillis: 60000
|
||
minEvictableIdleTimeMillis: 300000
|
||
validationQuery: SELECT1FROMDUAL
|
||
testWhileIdle: true
|
||
testOnBorrow: false
|
||
testOnReturn: false
|
||
filters: stat,wall,log4j #wall表示排除防火请
|
||
logSlowSql: true
|
||
|
||
#jpa配置
|
||
jpa:
|
||
properties:
|
||
hibernate:
|
||
dialect: org.hibernate.dialect.DmDialect
|
||
|
||
# Redis
|
||
redis:
|
||
database: 5
|
||
# host: 10.42.6.75
|
||
host: 127.0.0.1
|
||
port: 6379
|
||
password:
|
||
# password: Whdc_890
|
||
|
||
# 数据清洗专用redis
|
||
redisRules:
|
||
database: 6
|
||
# host: 10.42.6.75
|
||
host: 127.0.0.1
|
||
port: 6379
|
||
password: Whdc_890
|
||
# password:
|
||
timeout: 60000
|
||
lettuce:
|
||
pool:
|
||
max-active: 50
|
||
max-idle: 50
|
||
min-idle: 1
|
||
max-wait: 50000
|
||
|
||
servlet:
|
||
multipart:
|
||
max-file-size: 100MB
|
||
max-request-size: 100MB
|
||
|
||
knife4j:
|
||
enable: true
|
||
setting:
|
||
enableFooter: false
|
||
enableFooterCustom: true
|
||
footerCustomContent: Copyright 2018-[湖北纬皓端成科技有限公司](http://www.wavehorizon.cn)
|
||
|
||
documents: # 文档配置,可配置多个分组
|
||
- group: doc-knife4j-1.0.0
|
||
name: MarkDown文档
|
||
locations: classpath:markdown/*
|
||
- group: v1.0
|
||
name: v1.0
|
||
|
||
|
||
logging:
|
||
level.org.springframework.boot.autoconfigure: error #spring的自动装配日志只打error,否则debug输出的会打印很多自动装配的log信息到控制台
|
||
config: classpath:logback-spring.xml
|
||
|
||
mybatis-plus:
|
||
global-config:
|
||
db-config:
|
||
update-strategy: not_empty
|
||
insert-strategy: not_empty
|