application-local.yml 1.11 KB
spring:
  datasource:
    url: jdbc:mysql://192.168.1.47:3306/fw_erp?characterEncoding=UTF-8
    # 只有下面三个是必填项(使用内嵌数据库的话这三个也可以不用填,会使用默认配置),其他配置不是必须的
    username: root
    password: '07141105'
    driver-class-name: com.mysql.jdbc.Driver
    initial-size: 2
    max-active: 30
    min-idle: 2
    max-wait: 1234
    pool-prepared-statements: true
    max-pool-prepared-statement-per-connection-size: 5
    validation-query: SELECT 1 FROM DUAL
    validation-query-timeout: 1
    test-on-borrow: true
    test-on-return: true
    test-while-idle: true
    time-between-eviction-runs-millis: 10000
    min-evictable-idle-time-millis: 30001
    async-close-connection-enable: true
    aop-patterns: cn.fw.erp.dao.*

    # 自定义StatFilter 配置 其他 Filter 不再演示
    filter:
      stat:
        db-type: mysql
        log-slow-sql: true
        slow-sql-millis: 2000

mybatis:
  type-aliases-package: cn.fw.erp.domain cn.fw.data.base.db.query
  mapper-locations: classpath:mapper/*.xml
security:
  aes:
    key: bN7DVjFMJPcoWDcR