application.yml
787 Bytes
spring:
application:
name: erp-backend
datasource:
url: jdbc:mysql://${DB_HOST}:${DB_PORT}/${DB_SCHEMA}?useUnicode=true&characterEncoding=utf8&useSSL=false&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true
username: ${DB_USER}
password: ${DB_PASSWORD}
driver-class-name: com.mysql.cj.jdbc.Driver
flyway:
enabled: true
locations: filesystem:../sql/migrations
baseline-on-migrate: true
server:
port: 8080
servlet:
context-path: /
mybatis-plus:
mapper-locations: classpath:mapper/**/*.xml
configuration:
map-underscore-to-camel-case: false
erp:
tenant:
brands-id: XLY
subsidiary-id: XLY
security:
stub-user-no: STUB_ADMIN
jwt-secret: ${JWT_SECRET}
logging:
level:
root: INFO
com.xly.erp: DEBUG