release_1.0.0
liu 11 months ago
parent 3a01a66a08
commit 47345c9917

@ -1,15 +1,15 @@
#????? #服务器端口
server: server:
port: 9201 port: 9201
servlet: servlet:
context-path: /know-sub context-path: /know-sub
undertow: undertow:
# HTTP post???????????-1???????????? # HTTP post内容的最大大小。当值为-1时默认值为大小是无限的
max-http-post-size: -1 max-http-post-size: -1
# ????????buffer,??buffer?????????IO??,????netty??????? # 以下的配置会影响buffer,这些buffer会用于服务器连接的IO操作,有点类似netty的池化内存管理
# ??buffer?????,??????????? # 每块buffer的空间大小,越小的空间被利用越充分
buffer-size: 512 buffer-size: 512
# ????????? # 是否分配的直接内存
direct-buffers: true direct-buffers: true
spring: spring:
main: main:
@ -18,7 +18,7 @@ spring:
multipart: multipart:
max-file-size: 100MB max-file-size: 100MB
max-request-size: 100MB max-request-size: 100MB
##????? ## 数据源配置
datasource: datasource:
type: com.alibaba.druid.pool.DruidDataSource type: com.alibaba.druid.pool.DruidDataSource
druid: druid:
@ -26,36 +26,36 @@ spring:
url: jdbc:mysql://192.168.10.137:3306/know_sub?useUnicode=true&characterEncoding=utf-8&useSSL=true&nullCatalogMeansCurrent=true&serverTimezone=GMT%2B8 url: jdbc:mysql://192.168.10.137:3306/know_sub?useUnicode=true&characterEncoding=utf-8&useSSL=true&nullCatalogMeansCurrent=true&serverTimezone=GMT%2B8
username: root username: root
password: '123456' password: '123456'
initial-size: 5 # ????? initial-size: 5 # 初始化大小
min-idle: 10 # ????? min-idle: 10 # 最小连接数
max-active: 20 # ????? max-active: 20 # 最大连接数
max-wait: 60000 # ???????????? max-wait: 60000 # 获取连接时的最大等待时间
min-evictable-idle-time-millis: 300000 # ???????????????????? min-evictable-idle-time-millis: 300000 # 一个连接在池中最小生存的时间,单位是毫秒
time-between-eviction-runs-millis: 60000 # ???????????????????????? time-between-eviction-runs-millis: 60000 # 多久才进行一次检测需要关闭的空闲连接,单位是毫秒
filters: stat,wall # ???????stat-?????log4j-???wall-??????SQL?????????????sql???? filters: stat,wall # 配置扩展插件stat-监控统计log4j-日志wall-防火墙防止SQL注入去掉后监控界面的sql无法统计
validation-query: SELECT 1 # ????????? SQL??????????????? validation-query: SELECT 1 # 检测连接是否有效的 SQL语句为空时以下三个配置均无效
test-on-borrow: true # ???????validationQuery???????????true????????? test-on-borrow: true # 申请连接时执行validationQuery检测连接是否有效默认true开启后会降低性能
test-on-return: true # ???????validationQuery???????????false????????? test-on-return: true # 归还连接时执行validationQuery检测连接是否有效默认false开启后会降低性能
test-while-idle: true # ?????????????timeBetweenEvictionRunsMillis???validationQuery???????????false??????????? test-while-idle: true # 申请连接时如果空闲时间大于timeBetweenEvictionRunsMillis执行validationQuery检测连接是否有效默认false建议开启不影响性能
stat-view-servlet: stat-view-servlet:
enabled: true # ???? StatViewServlet enabled: true # 是否开启 StatViewServlet
loginUsername: admin loginUsername: admin
loginPassword: 123456 loginPassword: 123456
filter: filter:
stat: stat:
enabled: true # ???? FilterStat???true enabled: true # 是否开启 FilterStat默认true
log-slow-sql: true # ???? ?SQL ?????false log-slow-sql: true # 是否开启 慢SQL 记录,默认false
slow-sql-millis: 5000 # ? SQL ?????? 3000?????? slow-sql-millis: 5000 # 慢 SQL 的标准,默认 3000单位毫秒
merge-sql: false # ???????????????false merge-sql: false # 合并多个连接池的监控数据,默认false
mybatis-plus: mybatis-plus:
mapper-locations: classpath*:mapper/**/*.xml mapper-locations: classpath*:mapper/**/*.xml
configuration: configuration:
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
# springdoc-openapi???? # springdoc-openapi项目配置
springdoc: springdoc:
# ???false??????true ??GET???,??????????????? # 默认是false需要设置为true 解决GET请求时,用自定义对象接受现实错误的问题
default-flat-param-object: true default-flat-param-object: true
swagger-ui: swagger-ui:
path: /swagger-ui.html path: /swagger-ui.html
@ -67,7 +67,7 @@ springdoc:
- group: 'default' - group: 'default'
paths-to-match: '/**' paths-to-match: '/**'
packages-to-scan: com.supervision packages-to-scan: com.supervision
# knife4j??????????????? # knife4j的增强配置,不需要增强可以不配
knife4j: knife4j:
enable: true enable: true
setting: setting:

Loading…
Cancel
Save