|
@@ -1,5 +1,5 @@
|
|
|
server:
|
|
|
- port: 8081
|
|
|
+ port: 9098
|
|
|
tomcat:
|
|
|
max-swallow-size: -1
|
|
|
undertow:
|
|
@@ -7,7 +7,7 @@ server:
|
|
|
# 对于 bufferSize,最好和你系统的 TCP Socket Buffer 配置一样
|
|
|
# `/proc/sys/net/ipv4/tcp_rmem` (对于读取)
|
|
|
# `/proc/sys/net/ipv4/tcp_wmem` (对于写入)
|
|
|
- # 在内存大于 128 MB 时,bufferSize 默认为 16 KB 减去 20 字节,这 20 字节用于协议头
|
|
|
+ # 在内存大于 128 MB 时,bufferSize 为 16 KB 减去 20 字节,这 20 字节用于协议头
|
|
|
buffer-size: 16364
|
|
|
# 是否分配的直接内存(NIO直接分配的堆外内存),这里开启,所以java启动参数需要配置下直接内存大小,减少不必要的GC
|
|
|
# 在内存大于 128 MB 时,默认就是使用直接内存的
|
|
@@ -15,10 +15,10 @@ server:
|
|
|
threads:
|
|
|
# 设置IO线程数, 它主要执行非阻塞的任务,它们会负责多个连接, 默认设置每个CPU核心一个读线程和一个写线程
|
|
|
# 不要设置过大,如果过大,启动项目会报错:打开文件数过多
|
|
|
- io: 16
|
|
|
+ io: 8
|
|
|
# 阻塞任务线程池, 当执行类似servlet请求阻塞IO操作, undertow会从这个线程池中取得线程
|
|
|
# 它的值设置取决于系统线程执行任务的阻塞系数,默认值是IO线程数*8
|
|
|
- worker: 256
|
|
|
+ worker: 128
|
|
|
error:
|
|
|
include-exception: true
|
|
|
include-stacktrace: ALWAYS
|
|
@@ -41,14 +41,14 @@ spring:
|
|
|
strict: false #严格匹配数据源,默认false. true未匹配到指定数据源时抛异常,false使用默认数据源
|
|
|
datasource:
|
|
|
master:
|
|
|
- url: jdbc:mysql://localhost:3306/master?characterEncoding=UTF-8&autoReconnect=true&useUnicode=true&useSSL=false&tinyInt1isBit=false&allowPublicKeyRetrieval=true&serverTimezone=Asia/Shanghai
|
|
|
+ url: jdbc:mysql://192.168.0.31:3306/burial_point?characterEncoding=UTF-8&autoReconnect=true&useUnicode=true&useSSL=false&tinyInt1isBit=false&allowPublicKeyRetrieval=true&serverTimezone=Asia/Shanghai
|
|
|
username: root
|
|
|
- password: 123456
|
|
|
+ password: LongX@321
|
|
|
driver-class-name: com.mysql.cj.jdbc.Driver
|
|
|
# redis 配置
|
|
|
redis:
|
|
|
- database: 0
|
|
|
- host: 127.0.0.1
|
|
|
+ database: 5
|
|
|
+ host: 192.168.0.34
|
|
|
lettuce:
|
|
|
pool:
|
|
|
max-active: 8 # 最大连接数据库连接数,设 0 为没有限制
|
|
@@ -56,31 +56,14 @@ spring:
|
|
|
max-wait: -1ms # 最大建立连接等待时间。如果超过此时间将接到异常。设为-1表示无限制。
|
|
|
min-idle: 0 # 最小等待连接中的数量,设 0 为没有限制
|
|
|
shutdown-timeout: 100ms
|
|
|
- password: ''
|
|
|
+ password: lsf@12345
|
|
|
port: 6379
|
|
|
|
|
|
-# mybatis plus 设置
|
|
|
-mybatis-plus:
|
|
|
- type-aliases-package: com.benyun.**.entity
|
|
|
- mapper-locations: classpath*:/mapper/**/*.xml
|
|
|
- global-config:
|
|
|
- # 关闭MP3.0自带的banner
|
|
|
- banner: false
|
|
|
- db-config:
|
|
|
- # 主键类型
|
|
|
- id-type: AUTO
|
|
|
- # 默认数据库表下划线命名
|
|
|
- table-underline: true
|
|
|
- configuration:
|
|
|
- # 这个配置会将执行的sql打印出来,在开发或测试的时候可以用
|
|
|
- #log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
|
|
|
- # 返回类型为Map,显示null对应的字段
|
|
|
- call-setters-on-nulls: true
|
|
|
-
|
|
|
# swagger
|
|
|
knife4j:
|
|
|
production: true
|
|
|
basic:
|
|
|
enable: true
|
|
|
username: admin
|
|
|
- password: benyun
|
|
|
+ password: benyun
|
|
|
+
|