rev:配置信息修改
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
server:
|
server:
|
||||||
port: 8010
|
port: 8011
|
||||||
#配置数据源
|
#配置数据源
|
||||||
spring:
|
spring:
|
||||||
autoconfigure:
|
autoconfigure:
|
||||||
@@ -10,28 +10,14 @@ spring:
|
|||||||
datasource:
|
datasource:
|
||||||
mysql:
|
mysql:
|
||||||
driver-class-name: net.sf.log4jdbc.sql.jdbcapi.DriverSpy
|
driver-class-name: net.sf.log4jdbc.sql.jdbcapi.DriverSpy
|
||||||
url: jdbc:log4jdbc:mysql://${DB_HOST:10.93.41.198}:${DB_PORT:3306}/${DB_NAME:rl_mg_lms}?serverTimezone=Asia/Shanghai&characterEncoding=utf8&useSSL=false&useOldAliasMetadataBehavior=true
|
url: jdbc:log4jdbc:mysql://${DB_HOST:10.1.60.222}:${DB_PORT:3306}/${DB_NAME:kn_lms}?serverTimezone=Asia/Shanghai&characterEncoding=utf8&useSSL=false&useOldAliasMetadataBehavior=true
|
||||||
username: ${DB_USER:root}
|
username: ${DB_USER:root}
|
||||||
password: ${DB_PWD:123456}
|
password: ${DB_PWD:123456}
|
||||||
# url: jdbc:log4jdbc:mysql://${DB_HOST:127.0.0.1}:${DB_PORT:3306}/${DB_NAME:rtmg_lms}?serverTimezone=Asia/Shanghai&characterEncoding=utf8&useSSL=false&useOldAliasMetadataBehavior=true
|
|
||||||
# username: ${DB_USER:root}
|
|
||||||
# password: ${DB_PWD:12356}
|
|
||||||
type: com.alibaba.druid.pool.DruidDataSource
|
|
||||||
oracle:
|
|
||||||
driver-class-name: oracle.jdbc.OracleDriver
|
|
||||||
url: jdbc:oracle:thin:@172.27.37.66:1521:RTMES
|
|
||||||
username: ${DB_USER:LMSTELCOM}
|
|
||||||
password: ${DB_PWD:LMSTELCOM_6463}
|
|
||||||
type: com.alibaba.druid.pool.DruidDataSource
|
|
||||||
sqlserver:
|
|
||||||
driver-class-name: com.microsoft.sqlserver.jdbc.SQLServerDriver
|
|
||||||
url: jdbc:sqlserver://10.93.41.2\WINCC;DatabaseName=马钢_RH
|
|
||||||
username: ${DB_USER:sa}
|
|
||||||
password: ${DB_PWD:123}
|
|
||||||
type: com.alibaba.druid.pool.DruidDataSource
|
type: com.alibaba.druid.pool.DruidDataSource
|
||||||
redis:
|
redis:
|
||||||
#数据库索引
|
#数据库索引
|
||||||
host: ${REDIS_HOST:127.0.0.1}
|
database: ${REDIS_DB:8}
|
||||||
|
host: ${REDIS_HOST:10.1.60.222}
|
||||||
port: ${REDIS_PORT:6379}
|
port: ${REDIS_PORT:6379}
|
||||||
password: ${REDIS_PWD:}
|
password: ${REDIS_PWD:}
|
||||||
redisson:
|
redisson:
|
||||||
@@ -39,12 +25,14 @@ spring:
|
|||||||
threads: 4
|
threads: 4
|
||||||
nettyThreads: 4
|
nettyThreads: 4
|
||||||
singleServerConfig:
|
singleServerConfig:
|
||||||
database: 15
|
database: 8
|
||||||
connectionMinimumIdleSize: 8
|
connectionMinimumIdleSize: 8
|
||||||
connectionPoolSize: 8
|
connectionPoolSize: 8
|
||||||
address: redis://127.0.0.1:6379
|
address: redis://10.1.60.222:6379
|
||||||
idleConnectionTimeout: 10000
|
idleConnectionTimeout: 10000
|
||||||
timeout: 3000
|
timeout: 3000
|
||||||
|
|
||||||
|
|
||||||
# 登录相关配置
|
# 登录相关配置
|
||||||
login:
|
login:
|
||||||
# 登录缓存
|
# 登录缓存
|
||||||
@@ -63,48 +51,23 @@ login:
|
|||||||
heigth: 36
|
heigth: 36
|
||||||
# 内容长度
|
# 内容长度
|
||||||
length: 2
|
length: 2
|
||||||
# 字体名称,为空则使用默认字体,如遇到线上乱码,设置其他字体即可
|
# 字体名称,为空则使用默认字体
|
||||||
font-name:
|
font-name:
|
||||||
# 字体大小
|
# 字体大小
|
||||||
font-size: 25
|
font-size: 25
|
||||||
|
|
||||||
#jwt
|
#是否允许生成代码,生产环境设置为false
|
||||||
jwt:
|
generator:
|
||||||
header: Authorization
|
enabled: true
|
||||||
# 令牌前缀
|
|
||||||
token-start-with: Bearer
|
#是否开启 swagger-ui
|
||||||
# 必须使用最少88位的Base64对该令牌进行编码
|
swagger:
|
||||||
base64-secret: ZmQ0ZGI5NjQ0MDQwY2I4MjMxY2Y3ZmI3MjdhN2ZmMjNhODViOTg1ZGE0NTBjMGM4NDA5NzYxMjdjOWMwYWRmZTBlZjlhNGY3ZTg4Y2U3YTE1ODVkZDU5Y2Y3OGYwZWE1NzUzNWQ2YjFjZDc0NGMxZWU2MmQ3MjY1NzJmNTE0MzI=
|
enabled: true
|
||||||
# 令牌过期时间 此处单位/毫秒 ,默认2小时,可在此网站生成 https://www.convertworld.com/zh-hans/time/milliseconds.html
|
|
||||||
token-validity-in-seconds: 7200000
|
|
||||||
# 在线用户key
|
|
||||||
online-key: online-token-
|
|
||||||
# 验证码
|
|
||||||
code-key: code-key-
|
|
||||||
# token 续期检查时间范围(默认30分钟,单位默认毫秒),在token即将过期的一段时间内用户操作了,则给用户的token续期
|
|
||||||
detect: 1800000
|
|
||||||
# 续期时间范围,默认 1小时,这里单位毫秒
|
|
||||||
renew: 3600000
|
|
||||||
|
|
||||||
# IP 本地解析
|
# IP 本地解析
|
||||||
ip:
|
ip:
|
||||||
local-parsing: true
|
local-parsing: true
|
||||||
|
|
||||||
#是否允许生成代码,生产环境设置为false
|
|
||||||
generator:
|
|
||||||
enabled: false
|
|
||||||
|
|
||||||
#如果生产环境要开启swagger,需要配置请求地址
|
|
||||||
#springfox:
|
|
||||||
# documentation:
|
|
||||||
# swagger:
|
|
||||||
# v2:
|
|
||||||
# host: # 接口域名或外网ip
|
|
||||||
|
|
||||||
#是否开启 swagger-ui
|
|
||||||
swagger:
|
|
||||||
enabled: false
|
|
||||||
|
|
||||||
# 文件存储路径
|
# 文件存储路径
|
||||||
file:
|
file:
|
||||||
mac:
|
mac:
|
||||||
@@ -121,7 +84,7 @@ file:
|
|||||||
avatarMaxSize: 5
|
avatarMaxSize: 5
|
||||||
logging:
|
logging:
|
||||||
file:
|
file:
|
||||||
path: /app/jar/logs
|
path: C:\log\wms
|
||||||
config: classpath:logback-spring.xml
|
config: classpath:logback-spring.xml
|
||||||
|
|
||||||
# Sa-Token配置
|
# Sa-Token配置
|
||||||
@@ -161,14 +124,3 @@ sa-token:
|
|||||||
is-print: false
|
is-print: false
|
||||||
# 未登录 StpUtil.getTokenSession() 设置值,获取值 @SaIgnore 得忽略接口
|
# 未登录 StpUtil.getTokenSession() 设置值,获取值 @SaIgnore 得忽略接口
|
||||||
token-session-check-login: false
|
token-session-check-login: false
|
||||||
alone-redis:
|
|
||||||
# Redis数据库索引(默认为0)
|
|
||||||
database: 9
|
|
||||||
# Redis服务器地址
|
|
||||||
host: 127.0.0.1
|
|
||||||
# Redis服务器连接端口
|
|
||||||
port: 6379
|
|
||||||
# Redis服务器连接密码(默认为空)
|
|
||||||
password:
|
|
||||||
# 连接超时时间
|
|
||||||
timeout: 10s
|
|
||||||
|
|||||||
@@ -1,48 +1,4 @@
|
|||||||
server:
|
|
||||||
tomcat:
|
|
||||||
relaxed-query-chars: [ '|','{','}','[',']' ] #字符问题:https://blog.csdn.net/CanYue_Yi/article/details/109182577
|
|
||||||
relaxed-path-chars: [ '|','{','}','[',']' ] #字符问题: https://blog.csdn.net/weixin_41996632/article/details/90715118
|
|
||||||
spring:
|
spring:
|
||||||
datasource:
|
|
||||||
druid:
|
|
||||||
initial-size: 5 #初始化时建立物理连接的个数
|
|
||||||
min-idle: 15 #最小连接池数量
|
|
||||||
maxActive: 30 #最大连接池数量
|
|
||||||
maxWait: 3000 #获取连接时最大等待时间,单位毫秒
|
|
||||||
# 申请连接的时候检测,如果空闲时间大于timeBetweenEvictionRunsMillis,执行validationQuery检测连接是否有效。
|
|
||||||
test-while-idle: true
|
|
||||||
time-between-eviction-runs-millis: 300000 #既作为检测的间隔时间又作为test-while-idle执行的依据
|
|
||||||
min-evictable-idle-time-millis: 900000 #销毁线程时检测当前连接的最后活动时间和当前时间差大于该值时,关闭当前连接
|
|
||||||
#用来检测连接是否有效的sql
|
|
||||||
#mysql中为 select 'x'
|
|
||||||
#oracle中为 select 1 from dual
|
|
||||||
validation-query: SELECT 'x'
|
|
||||||
test-on-borrow: true #申请连接时会执行validationQuery检测连接是否有效,开启会降低性能,默认为true
|
|
||||||
test-on-return: false #归还连接时会执行validationQuery检测连接是否有效,开启会降低性能,默认为true
|
|
||||||
exception-sorter: true #当数据库抛出不可恢复的异常时,抛弃该连接
|
|
||||||
pool-prepared-statements: true #是否缓存preparedStatement,mysql5.5+建议开启
|
|
||||||
max-pool-prepared-statement-per-connection-size: 20 #当值大于20时poolPreparedStatements会自动修改为true
|
|
||||||
#通过connectProperties属性来打开mergeSql功能;慢SQL记录
|
|
||||||
connection-properties: druid.stat.mergeSql=true;druid.stat.slowSqlMillis=5000
|
|
||||||
use-global-data-source-stat: true #合并多个DruidDataSource的监控数据
|
|
||||||
#filters通过别名的方式配置扩展插件,常用的插件有:
|
|
||||||
#监控统计用的filter:stat 日志用的filter:log4j 防御sql注入的filter:wall
|
|
||||||
filter:
|
|
||||||
stat:
|
|
||||||
enabled: true
|
|
||||||
# 记录慢SQL
|
|
||||||
log-slow-sql: true
|
|
||||||
slow-sql-millis: 1000
|
|
||||||
merge-sql: true
|
|
||||||
wall:
|
|
||||||
config:
|
|
||||||
multi-statement-allow: true
|
|
||||||
#设置访问druid监控页面的拦截路径及账号和密码,默认没有
|
|
||||||
stat-view-servlet:
|
|
||||||
enabled: true
|
|
||||||
url-pattern: /druid/*
|
|
||||||
login-username: admin
|
|
||||||
login-password: admin
|
|
||||||
freemarker:
|
freemarker:
|
||||||
check-template-location: false
|
check-template-location: false
|
||||||
profiles:
|
profiles:
|
||||||
@@ -53,45 +9,6 @@ spring:
|
|||||||
redis:
|
redis:
|
||||||
repositories:
|
repositories:
|
||||||
enabled: false
|
enabled: false
|
||||||
dynamic:
|
|
||||||
tp:
|
|
||||||
enabled: true # 是否启用 dynamictp,默认true
|
|
||||||
enabledBanner: false # 是否启用 控制台banner,默认true
|
|
||||||
enabledCollect: true # 是否开启监控指标采集,默认true
|
|
||||||
collectorTypes: logging,test_collect # 监控数据采集器类型(logging | micrometer | internal_logging),默认micrometer
|
|
||||||
logPath: C:\log\lms # 监控日志数据路径,默认 ${user.home}/logs,采集类型非logging不用配置
|
|
||||||
monitorInterval: 8
|
|
||||||
tomcatTp: # tomcat webserver 线程池配置
|
|
||||||
threadPoolAliasName: tomcat 线程池 # 线程池别名,可选
|
|
||||||
corePoolSize: 100
|
|
||||||
maximumPoolSize: 200
|
|
||||||
keepAliveTime: 60
|
|
||||||
runTimeout: 10000
|
|
||||||
queueTimeout: 100
|
|
||||||
notifyItems: # 报警项,不配置自动会按默认值配置(变更通知、容量报警、活性报警、拒绝报警、任务超时报警)
|
|
||||||
- type: change
|
|
||||||
enabled: true
|
|
||||||
|
|
||||||
- type: capacity # 队列容量使用率,报警项类型,查看源码 NotifyTypeEnum枚举类
|
|
||||||
enabled: true
|
|
||||||
threshold: 80 # 报警阈值,默认70,意思是队列使用率达到70%告警
|
|
||||||
interval: 120 # 报警间隔(单位:s),默认120
|
|
||||||
|
|
||||||
- type: liveness # 线程池活性
|
|
||||||
enabled: true
|
|
||||||
threshold: 80 # 报警阈值,默认 70,意思是活性达到70%告警
|
|
||||||
|
|
||||||
- type: reject # 触发任务拒绝告警
|
|
||||||
enabled: true
|
|
||||||
threshold: 100 # 默认阈值10
|
|
||||||
|
|
||||||
- type: run_timeout # 任务执行超时告警
|
|
||||||
enabled: true
|
|
||||||
threshold: 100 # 默认阈值10
|
|
||||||
|
|
||||||
- type: queue_timeout # 任务排队超时告警
|
|
||||||
enabled: true
|
|
||||||
threshold: 100 # 默认阈值10
|
|
||||||
task:
|
task:
|
||||||
pool:
|
pool:
|
||||||
# 核心线程池大小
|
# 核心线程池大小
|
||||||
@@ -155,8 +72,8 @@ security:
|
|||||||
mybatis-plus:
|
mybatis-plus:
|
||||||
configuration:
|
configuration:
|
||||||
map-underscore-to-camel-case: false
|
map-underscore-to-camel-case: false
|
||||||
jdbc-type-for-null: null
|
#jdbc-type-for-null: null
|
||||||
log-impl: org.nl.config.mybatis.MyStdOutImpl
|
#log-impl: org.nl.config.mybatis.MyStdOutImpl
|
||||||
mapper-locations:
|
mapper-locations:
|
||||||
- classpath:org.nl.**.mapper/*.xml
|
- classpath:org.nl.**.mapper/*.xml
|
||||||
global-config:
|
global-config:
|
||||||
@@ -166,7 +83,7 @@ mybatis-plus:
|
|||||||
|
|
||||||
lucene:
|
lucene:
|
||||||
index:
|
index:
|
||||||
path: D:\lucene\index
|
path: C:\lms\lucene\index
|
||||||
|
|
||||||
jetcache:
|
jetcache:
|
||||||
statIntervalMinutes: 15
|
statIntervalMinutes: 15
|
||||||
@@ -186,5 +103,5 @@ jetcache:
|
|||||||
minIdle: 5 # 连接池中的最小空闲连接数
|
minIdle: 5 # 连接池中的最小空闲连接数
|
||||||
maxIdle: 20 # 连接池中的最大空闲连接数
|
maxIdle: 20 # 连接池中的最大空闲连接数
|
||||||
maxTotal: 50 # 连接池中的最大连接数
|
maxTotal: 50 # 连接池中的最大连接数
|
||||||
host: 127.0.0.1
|
host: 10.1.60.222
|
||||||
port: 6379
|
port: 6379
|
||||||
|
|||||||
Reference in New Issue
Block a user