2021-03-15 10:48:03 +08:00
|
|
|
|
# 文件
|
|
|
|
|
file:
|
|
|
|
|
# 上传路径
|
|
|
|
|
uploadPath: E:\projects\uploadFiles\
|
|
|
|
|
# 图片支持格式
|
|
|
|
|
imageTypes: png,jpg,jpeg,gif,blob
|
|
|
|
|
# 视频支持格式
|
|
|
|
|
videoTypes: mp4,rmvb
|
|
|
|
|
# 音乐支持格式
|
|
|
|
|
audioTypes: mp3,wm v
|
|
|
|
|
# 文件支持格式
|
|
|
|
|
fileTypes: doc,docx,xls,xlsx,ppt,pptx,txt,zip,rar,apk,pdf
|
|
|
|
|
# 文件大小
|
|
|
|
|
maxFileCount: 6
|
|
|
|
|
|
2021-01-21 17:03:17 +08:00
|
|
|
|
server:
|
2021-03-15 10:48:03 +08:00
|
|
|
|
port: 8090
|
2021-01-21 17:03:17 +08:00
|
|
|
|
servlet:
|
|
|
|
|
context-path: /businesscard
|
|
|
|
|
|
|
|
|
|
spring:
|
|
|
|
|
main:
|
|
|
|
|
allow-bean-definition-overriding: true
|
|
|
|
|
servlet:
|
|
|
|
|
multipart:
|
|
|
|
|
max-file-size: 1GB
|
|
|
|
|
max-request-size: 1GB
|
|
|
|
|
datasource:
|
|
|
|
|
druid:
|
|
|
|
|
url: jdbc:mysql://127.0.0.1:3306/db_business_card?useUnicode=true&characterEncoding=utf8&characterSetResults=utf8&autoReconnect=true&failOverReadOnly=false&useSSL=false&serverTimezone=UTC
|
|
|
|
|
db-type: mysql
|
|
|
|
|
driver-class-name: com.mysql.cj.jdbc.Driver
|
|
|
|
|
username: root
|
2021-03-15 10:48:03 +08:00
|
|
|
|
password: admin
|
2021-01-21 17:03:17 +08:00
|
|
|
|
initial-size: 2
|
|
|
|
|
min-idle: 2
|
|
|
|
|
max-active: 10
|
|
|
|
|
# 配置获取连接等待超时的时间
|
|
|
|
|
max-wait: 60000
|
|
|
|
|
# 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒
|
|
|
|
|
time-between-eviction-runs-millis: 60000
|
|
|
|
|
# 配置一个连接在池中最小生存的时间,单位是毫秒
|
|
|
|
|
min-evictable-idle-time-millis: 300000
|
|
|
|
|
validation-query: SELECT 1 FROM DUAL
|
|
|
|
|
test-while-idle: true
|
|
|
|
|
test-on-borrow: false
|
|
|
|
|
test-on-return: false
|
|
|
|
|
# 打开PSCache,并且指定每个连接上PSCache的大小
|
|
|
|
|
pool-prepared-statements: true
|
|
|
|
|
max-pool-prepared-statement-per-connection-size: 10
|
|
|
|
|
# 配置监控统计拦截的filters,去掉后监控界面sql无法统计,'wall'用于防火墙
|
|
|
|
|
filter:
|
|
|
|
|
commons-log:
|
|
|
|
|
connection-logger-name: stat,wall,log4j
|
|
|
|
|
stat:
|
|
|
|
|
log-slow-sql: true
|
|
|
|
|
slow-sql-millis: 2000
|
|
|
|
|
# 通过connectProperties属性来打开mergeSql功能;慢SQL记录
|
|
|
|
|
connection-properties: druid.stat.mergeSql=true;druid.stat.slowSqlMillis=5000
|
|
|
|
|
# 合并多个DruidDataSource的监控数据
|
|
|
|
|
use-global-data-source-stat: true
|
|
|
|
|
|
|
|
|
|
mybatis:
|
|
|
|
|
config-location: classpath:mybatis/mybatis-config.xml
|
|
|
|
|
mapper-locations: classpath*:mybatis/mapper/**/*.xml
|
|
|
|
|
|
|
|
|
|
logging:
|
|
|
|
|
level:
|
|
|
|
|
root: error
|
2021-03-15 10:48:03 +08:00
|
|
|
|
com.cm: debug
|