|
|
@ -1,5 +1,10 @@ |
|
|
|
server: |
|
|
|
port: 8010 |
|
|
|
tomcat: |
|
|
|
accept-count: 1000 |
|
|
|
max-connections: 10000 |
|
|
|
max-threads: 800 |
|
|
|
min-spare-threads: 50 |
|
|
|
#配置数据源 |
|
|
|
spring: |
|
|
|
datasource: |
|
|
@ -7,7 +12,7 @@ spring: |
|
|
|
db-type: com.alibaba.druid.pool.DruidDataSource |
|
|
|
driverClassName: net.sf.log4jdbc.sql.jdbcapi.DriverSpy |
|
|
|
# url: jdbc:log4jdbc:mysql://${DB_HOST:192.168.81.252}:${DB_PORT:3306}/${DB_NAME:nl-sso-server}?serverTimezone=Asia/Shanghai&characterEncoding=utf8&useSSL=false&useOldAliasMetadataBehavior=true |
|
|
|
url: jdbc:log4jdbc:mysql://${DB_HOST:127.0.0.1}:${DB_PORT:3306}/${DB_NAME:nl_platform}?serverTimezone=Asia/Shanghai&characterEncoding=utf8&useSSL=false&useOldAliasMetadataBehavior=true |
|
|
|
url: jdbc:log4jdbc:mysql://${DB_HOST:127.0.0.ext_constant.xml}:${DB_PORT:3306}/${DB_NAME:nl_platform}?serverTimezone=Asia/Shanghai&characterEncoding=utf8&useSSL=false&useOldAliasMetadataBehavior=true |
|
|
|
username: ${DB_USER:root} |
|
|
|
password: ${DB_PWD:root} |
|
|
|
# password: ${DB_PWD:12356} |
|
|
@ -34,7 +39,7 @@ spring: |
|
|
|
# 是否在归还到池中前进行检验 |
|
|
|
test-on-return: false |
|
|
|
# 检测连接是否有效 |
|
|
|
validation-query: select 1 |
|
|
|
validation-query: select ext_constant.xml |
|
|
|
# 配置监控统计 |
|
|
|
webStatFilter: |
|
|
|
enabled: true |
|
|
@ -55,8 +60,19 @@ spring: |
|
|
|
redis: |
|
|
|
#数据库索引 |
|
|
|
database: ${REDIS_DB:2} |
|
|
|
host: ${REDIS_HOST:127.0.0.1} |
|
|
|
host: ${REDIS_HOST:127.0.0.ext_constant.xml} |
|
|
|
port: ${REDIS_PORT:6379} |
|
|
|
redisson: |
|
|
|
config: | |
|
|
|
threads: 4 |
|
|
|
nettyThreads: 4 |
|
|
|
singleServerConfig: |
|
|
|
connectionMinimumIdleSize: 8 |
|
|
|
connectionPoolSize: 8 |
|
|
|
address: redis://127.0.0.1:6379 |
|
|
|
# password: 942464Yy |
|
|
|
idleConnectionTimeout: 10000 |
|
|
|
timeout: 3000 |
|
|
|
flyway: # flyway 数据库 DDL 版本控制 |
|
|
|
enabled: true # 正式环境才开启 |
|
|
|
clean-disabled: true # 禁用数据库清理 |
|
|
@ -64,7 +80,7 @@ spring: |
|
|
|
locations: classpath:db |
|
|
|
# flyway 会在库中创建此名称元数据表,用于记录所有版本演化和状态,同一个库不同项目可能冲突,每个项目一张表来记录 |
|
|
|
table: flyway_schema_history_nl_platform #TODO 值的后缀指定为当前项目名称 |
|
|
|
baseline-version: 1 # 基线版本默认开始序号 默认为 1 |
|
|
|
baseline-version: ext_constant.xml # 基线版本默认开始序号 默认为 ext_constant.xml |
|
|
|
baseline-on-migrate: true # 针对非空数据库是否默认调用基线版本,为空的话默认会调用基线版本 |
|
|
|
placeholders: # 定义 afterMigrateError.sql 要清理的元数据表表名 |
|
|
|
flyway-table: ${spring.flyway.table} |
|
|
@ -110,13 +126,13 @@ spring: |
|
|
|
threshold: 80 |
|
|
|
- type: reject |
|
|
|
enabled: true |
|
|
|
threshold: 1 |
|
|
|
threshold: ext_constant.xml |
|
|
|
- type: run_timeout |
|
|
|
enabled: true |
|
|
|
threshold: 1 |
|
|
|
threshold: ext_constant.xml |
|
|
|
- type: queue_timeout |
|
|
|
enabled: true |
|
|
|
threshold: 1 |
|
|
|
threshold: ext_constant.xml |
|
|
|
quartz: |
|
|
|
properties: |
|
|
|
org: |
|
|
@ -221,7 +237,7 @@ sa-token: |
|
|
|
# Redis数据库索引(默认为0) |
|
|
|
database: 2 |
|
|
|
# Redis服务器地址 |
|
|
|
host: 127.0.0.1 |
|
|
|
host: 127.0.0.ext_constant.xml |
|
|
|
# Redis服务器连接端口 |
|
|
|
port: 6379 |
|
|
|
# Redis服务器连接密码(默认为空) |
|
|
|