Browse Source

配置文件更新

master
管理员 2 years ago
parent
commit
01c16269d6
  1. 14
      nladmin-system/nlsso-server/pom.xml
  2. 32
      nladmin-system/nlsso-server/src/main/resources/config/application-dev.yml
  3. 18
      nladmin-system/nlsso-server/src/main/resources/config/application.yml

14
nladmin-system/nlsso-server/pom.xml

@ -77,13 +77,13 @@
<dependency> <dependency>
<groupId>org.redisson</groupId> <groupId>org.redisson</groupId>
<artifactId>redisson-spring-boot-starter</artifactId> <artifactId>redisson-spring-boot-starter</artifactId>
<version>3.12.3</version> <version>3.19.1</version>
<exclusions> </dependency>
<exclusion>
<artifactId>spring-boot-starter-actuator</artifactId> <dependency>
<groupId>org.springframework.boot</groupId> <groupId>com.esotericsoftware</groupId>
</exclusion> <artifactId>kryo</artifactId>
</exclusions> <version>5.0.0-RC1</version>
</dependency> </dependency>

32
nladmin-system/nlsso-server/src/main/resources/config/application-dev.yml

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

18
nladmin-system/nlsso-server/src/main/resources/config/application.yml

@ -73,20 +73,4 @@ plumelog:
lite: lite:
log: log:
path: /lucene2 path: /lucene2
redisson:
# redis key前缀
keyPrefix:
# 线程池数量
threads: 4
# Netty线程池数量
nettyThreads: 8
# 单节点配置
singleServerConfig:
# 最小空闲连接数
connectionMinimumIdleSize: 4
# 连接池大小
connectionPoolSize: 8
# 连接空闲超时,单位:毫秒
idleConnectionTimeout: 10000
# 命令等待超时,单位:毫秒
timeout: 3000

Loading…
Cancel
Save