application-dev.yml
1.35 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# 开发环境配置
spring:
# 数据源配置
datasource:
url: jdbc:mysql://localhost:3306/apple_erp?useUnicode=true&characterEncoding=utf8&serverTimezone=Asia/Shanghai&useSSL=false&allowPublicKeyRetrieval=true
username: root
password: MySQL@123
druid:
# 开发环境使用较少的连接数
initial-size: 2
min-idle: 2
max-active: 10
max-wait: 30000
# 开发环境开启SQL监控
stat-view-servlet:
enabled: true
url-pattern: "/druid/*"
login-username: admin
login-password: admin123
# Redis配置
redis:
host: localhost
port: 6379
password:
database: 0
# 开发环境关闭缓存
cache:
type: none
# MyBatis Plus配置
mybatis-plus:
configuration:
# 开发环境打印SQL
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
# 日志配置
logging:
level:
com.apple.erp: debug
org.springframework.security: debug
org.springframework.web: debug
com.alibaba.druid: debug
file:
name: logs/apple-erp-dev.log
# 自定义配置
apple:
erp:
# JWT配置
jwt:
secret: apple-erp-jwt-secret-key-dev-2024
expiration: 86400
refresh-expiration: 604800
# 文件上传配置
upload:
path: D:/upload/apple-erp/
allowed-types: jpg,jpeg,png,gif,pdf,doc,docx,xls,xlsx
max-size: 10