init
parent
a0e1d6ad41
commit
41bd894b1e
@ -1 +0,0 @@
|
||||
spring.application.name=know_sub_business
|
@ -0,0 +1,74 @@
|
||||
#?????
|
||||
server:
|
||||
port: 9201
|
||||
servlet:
|
||||
context-path: /know-sub
|
||||
undertow:
|
||||
# HTTP post???????????-1????????????
|
||||
max-http-post-size: -1
|
||||
# ????????buffer,??buffer?????????IO??,????netty???????
|
||||
# ??buffer?????,???????????
|
||||
buffer-size: 512
|
||||
# ?????????
|
||||
direct-buffers: true
|
||||
spring:
|
||||
main:
|
||||
allow-bean-definition-overriding: true
|
||||
servlet:
|
||||
multipart:
|
||||
max-file-size: 100MB
|
||||
max-request-size: 100MB
|
||||
##?????
|
||||
datasource:
|
||||
type: com.alibaba.druid.pool.DruidDataSource
|
||||
druid:
|
||||
driver-class-name: com.mysql.cj.jdbc.Driver
|
||||
url: jdbc:mysql://192.168.10.137:3306/know_sub?useUnicode=true&characterEncoding=utf-8&useSSL=true&nullCatalogMeansCurrent=true&serverTimezone=GMT%2B8
|
||||
username: root
|
||||
password: '123456'
|
||||
initial-size: 5 # ?????
|
||||
min-idle: 10 # ?????
|
||||
max-active: 20 # ?????
|
||||
max-wait: 60000 # ????????????
|
||||
min-evictable-idle-time-millis: 300000 # ????????????????????
|
||||
time-between-eviction-runs-millis: 60000 # ????????????????????????
|
||||
filters: stat,wall # ???????stat-?????log4j-???wall-??????SQL?????????????sql????
|
||||
validation-query: SELECT 1 # ????????? SQL???????????????
|
||||
test-on-borrow: true # ???????validationQuery???????????true?????????
|
||||
test-on-return: true # ???????validationQuery???????????false?????????
|
||||
test-while-idle: true # ?????????????timeBetweenEvictionRunsMillis???validationQuery???????????false???????????
|
||||
stat-view-servlet:
|
||||
enabled: true # ???? StatViewServlet
|
||||
loginUsername: admin
|
||||
loginPassword: 123456
|
||||
filter:
|
||||
stat:
|
||||
enabled: true # ???? FilterStat???true
|
||||
log-slow-sql: true # ???? ?SQL ?????false
|
||||
slow-sql-millis: 5000 # ? SQL ?????? 3000??????
|
||||
merge-sql: false # ???????????????false
|
||||
|
||||
mybatis-plus:
|
||||
mapper-locations: classpath*:mapper/**/*.xml
|
||||
configuration:
|
||||
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
|
||||
|
||||
# springdoc-openapi????
|
||||
springdoc:
|
||||
# ???false??????true ??GET???,???????????????
|
||||
default-flat-param-object: true
|
||||
swagger-ui:
|
||||
path: /swagger-ui.html
|
||||
tags-sorter: alpha
|
||||
operations-sorter: alpha
|
||||
api-docs:
|
||||
path: /v3/api-docs
|
||||
group-configs:
|
||||
- group: 'default'
|
||||
paths-to-match: '/**'
|
||||
packages-to-scan: com.supervision
|
||||
# knife4j???????????????
|
||||
knife4j:
|
||||
enable: true
|
||||
setting:
|
||||
language: zh_cn
|
Loading…
Reference in New Issue