application.yml 980 Bytes
spring:
  application:
    name: test4-backend
  profiles:
    active: dev
  config:
    import: optional:file:../.env.local[.properties]
  datasource:
    url: jdbc:mysql://${DB_HOST}:${DB_PORT}/${DB_SCHEMA}?useUnicode=true&characterEncoding=utf8&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true&useSSL=false&tinyInt1isBit=false
    username: ${DB_USER}
    password: ${DB_PASSWORD}
    driver-class-name: com.mysql.cj.jdbc.Driver
  flyway:
    enabled: true
    locations: filesystem:../sql/migrations
    baseline-on-migrate: false

server:
  port: 8080

mybatis-plus:
  mapper-locations: classpath:mapper/**/*.xml
  global-config:
    db-config:
      id-type: AUTO
  configuration:
    map-underscore-to-camel-case: false

app:
  security:
    default-password: "666666"
    max-login-fail: 5
    lock-minutes: 30
    jwt:
      secret: ${JWT_SECRET}
      access-ttl-hours: 24

springdoc:
  api-docs:
    path: /v3/api-docs
  swagger-ui:
    path: /swagger-ui.html