spring:
  profiles:
    active: dev
  thymeleaf:
    cache: false
  messages:
    basename: i18n/messages
  jackson:
    date-format: yyyy-MM-dd HH:mm:ss
mybatis:
  config-location: classpath:mybatis-config.xml
endpoints:
  shutdown:
    enabled: true
    path: /danger
    sensitive: true
management:
  port: 9900
  address: 127.0.0.1
  context-path: /manage
  security:
    role: SUPERUSER
security:
  user:
    name: admin
    password: secret
api:
  auth:
    enabled: true
user:
  welcome: Hello, World!
  noFilterUrl: /,/login

logging.level.tk.mybatis.pagehelper.mapper: WARN
pagehelper:
  closeConn: true
  offset-as-page-num: false
  autoDialect: true

---
spring:
  profiles: dev
  datasource:
    driver-class-name: com.mysql.cj.jdbc.Driver
    url: jdbc:mysql://db.hongxi.org:3306/test?useUnicode=true&characterEncoding=UTF-8&allowMultiQueries=true
    username: root
    password: n36bxXMnHina
    connectionTimeout: 30000
    idleTimeout: 60000
    maxLifetime: 1800000
    minimumIdle: 5
    maximumPoolSize: 10
    connection-test-query: SELECT 1
  redis:
    host: 127.0.0.1
    port: 6379
    timeout: 10000
    pool:
      max-active: 8
      max-idle: 8
      max-wait: -1
      min-idle: 0
server:
  port: 8081
  tomcat:
    uri-encoding: UTF-8
    basedir: /data/logs/whatsmars-spring-boot
    accesslog:
      directory: logs
      enabled: true
      pattern: common
      prefix: access_log
      suffix: .log

---
spring:
  profiles: test
  datasource:
    driver-class-name: com.mysql.cj.jdbc.Driver
    url: jdbc:mysql://db.hongxi.org:3306/test?useUnicode=true&characterEncoding=UTF-8&allowMultiQueries=true
    username: root
    password: n36bxXMnHina
    connectionTimeout: 30000
    idleTimeout: 60000
    maxLifetime: 1800000
    minimumIdle: 5
    maximumPoolSize: 10
    connection-test-query: SELECT 1
  redis:
    host: 127.0.0.1
    port: 6379
    timeout: 10000
    pool:
      max-active: 8
      max-idle: 8
      max-wait: -1
      min-idle: 0
server:
  port: 8081
  tomcat:
    uri-encoding: UTF-8
    basedir: /data/logs/whatsmars-spring-boot
    accesslog:
      directory: logs
      enabled: true
      pattern: common
      prefix: access_log
      suffix: .log

---
spring:
  profiles: prod
  datasource:
    driver-class-name: com.mysql.cj.jdbc.Driver
    url: jdbc:mysql://db.hongxi.org:3306/test?useUnicode=true&characterEncoding=UTF-8&allowMultiQueries=true
    username: root
    password: n36bxXMnHina
    connectionTimeout: 30000
    idleTimeout: 60000
    maxLifetime: 1800000
    minimumIdle: 5
    maximumPoolSize: 10
    connection-test-query: SELECT 1
  redis:
    host: 127.0.0.1
    port: 6379
    timeout: 10000
    pool:
      max-active: 8
      max-idle: 8
      max-wait: -1
      min-idle: 0
server:
  port: 8081
  tomcat:
    uri-encoding: UTF-8
    basedir: /data/logs/whatsmars-spring-boot
    accesslog:
      directory: logs
      enabled: true
      pattern: common
      prefix: access_log
      suffix: .log