application.yml
669 Bytes
spring:
datasource:
url: jdbc:mysql://${DB_HOST}:${DB_PORT}/${DB_SCHEMA}?useSSL=false&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true&characterEncoding=UTF-8
username: ${DB_USER}
password: ${DB_PASSWORD}
driver-class-name: com.mysql.cj.jdbc.Driver
flyway:
locations: classpath:db/migration
baseline-on-migrate: true
baseline-version: 1
validate-on-migrate: false
out-of-order: false
server:
port: 8080
jwt:
secret: ${JWT_SECRET}
access-token-expiry: 86400
refresh-token-expiry: 604800
mybatis-plus:
configuration:
map-underscore-to-camel-case: false
global-config:
db-config:
id-type: auto