application.yml
793 Bytes
server:
port: 9090
spring:
application:
name: xly-erp-backend
datasource:
driver-class-name: com.mysql.cj.jdbc.Driver
url: jdbc:mysql://${DB_HOST}:${DB_PORT}/${DB_SCHEMA}?useUnicode=true&characterEncoding=utf8&serverTimezone=Asia/Shanghai&useSSL=false&allowPublicKeyRetrieval=true
username: ${DB_USER}
password: ${DB_PASSWORD}
flyway:
enabled: true
locations: filesystem:../sql/migrations
baseline-on-migrate: true
baseline-version: 0
validate-on-migrate: true
mybatis-plus:
configuration:
map-underscore-to-camel-case: false
log-impl: org.apache.ibatis.logging.slf4j.Slf4jImpl
global-config:
db-config:
id-type: auto
jwt:
secret: ${JWT_SECRET}
ttl-sec: 7200
logging:
level:
root: INFO
com.xly.erp: DEBUG