vue-java-tutorials/spring-security/step-2/src/main/resources/application.yml

58 lines
1.6 KiB
YAML
Raw Normal View History

2025-07-11 13:48:10 +08:00
server:
port: 8772
spring:
application:
name: spring-security
profiles:
active: dev
2025-07-11 15:10:45 +08:00
devtools:
livereload:
port: 0
2025-07-11 13:48:10 +08:00
datasource:
2025-07-11 15:10:45 +08:00
dynamic:
primary: master
datasource:
master:
type: com.zaxxer.hikari.HikariDataSource
driver-class-name: com.mysql.cj.jdbc.Driver
url: jdbc:mysql://${bunny.master.host}:${bunny.master.port}/${bunny.master.database}?serverTimezone=GMT%2B8&useSSL=false&characterEncoding=utf-8&allowPublicKeyRetrieval=true
username: ${bunny.master.username}
password: ${bunny.master.password}
testJwt:
type: com.zaxxer.hikari.HikariDataSource
driver-class-name: com.mysql.cj.jdbc.Driver
url: jdbc:mysql://${bunny.testJwt.host}:${bunny.testJwt.port}/${bunny.testJwt.database}?serverTimezone=GMT%2B8&useSSL=false&characterEncoding=utf-8&allowPublicKeyRetrieval=true
username: ${bunny.testJwt.username}
password: ${bunny.testJwt.password}
2025-07-11 13:48:10 +08:00
hikari:
maximum-pool-size: 20
connection-timeout: 30000
jackson:
date-format: yyyy-MM-dd HH:mm:ss
mybatis-plus:
mapper-locations: classpath:/mapper/*.xml
global-config:
db-config:
2025-07-11 15:10:45 +08:00
id-type: assign_id
2025-07-11 13:48:10 +08:00
logic-delete-value: 1
logic-not-delete-value: 0
2025-07-11 15:10:45 +08:00
logic-delete-field: isDeleted
2025-07-11 13:48:10 +08:00
logging:
level:
root: info
2025-07-13 22:07:41 +08:00
com.spring: debug
org.springframework.security: debug
2025-07-16 00:05:10 +08:00
jwtToken:
# 密钥
secret: aVeryLongAndSecureRandomStringWithAtLeast32Characters
# 主题
subject: SecurityBunny
# 过期事件 7天
expired: 604800