37 lines
924 B
YAML
37 lines
924 B
YAML
# 开发环境配置文件
|
|
spring:
|
|
# 数据库配置
|
|
datasource:
|
|
type: com.alibaba.druid.pool.DruidDataSource
|
|
driver-class-name: com.mysql.cj.jdbc.Driver
|
|
url: jdbc:mysql://8.131.93.145:54081/aiob_callback?useSSL=false&serverTimezone=Asia/Shanghai&useUnicode=true&characterEncoding=utf-8&allowPublicKeyRetrieval=true
|
|
username: root
|
|
password: 1qaz!@#$
|
|
# druid相关配置
|
|
druid:
|
|
max-active: 5000
|
|
initial-size: 20
|
|
min-idle: 5
|
|
async-init: true
|
|
# 监控统计
|
|
filters: stat,wall
|
|
filter:
|
|
stat:
|
|
log-slow-sql: true
|
|
slow-sql-millis: 5000
|
|
wall:
|
|
config:
|
|
create-table-allow: false
|
|
alter-table-allow: false
|
|
drop-table-allow: false
|
|
truncate-allow: false
|
|
|
|
# 开启文档
|
|
swagger:
|
|
enable: true
|
|
|
|
logging:
|
|
level:
|
|
root: debug
|
|
path: logs/${spring.application.name}/
|