application-dev.yml 2.21 KB
server:
  port: 8030
  tomcat.max-threads: 50
  tomcat.uri-encoding: UTF-8

eureka:
  instance:
    hostname: fw-marketing-man #	设置当前实例的主机名称
    prefer-ip-address: true #访问路径变更为IP
    lease-renewal-interval-in-seconds: 5 #心跳间隔
    lease-expiration-duration-in-seconds: 5 #如果现在超过了5秒的间隔
  client:
    serviceUrl:
      defaultZone: http://feewee:1234qwer@deveureka.feewee.cn/eureka/
    fetch-registry: true

spring:
  application:
    name: fw-marketing-man
  datasource:
    url: jdbc:mysql://192.168.0.8:3306/fw_rp?characterEncoding=UTF-8
    # 只有下面三个是必填项(使用内嵌数据库的话这三个也可以不用填,会使用默认配置),其他配置不是必须的
    username: root
    password: mysql@pwd123
    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.third.pstn.dao.*
    # 自定义StatFilter 配置 其他 Filter 不再演示
    filter:
      stat:
        db-type: mysql
        log-slow-sql: true
        slow-sql-millis: 2000
  redis:
    host: 192.168.0.8
  http:
    multipart:
      max-file-size: 100Mb
      max-request-size: 100Mb


mybatis:
  type-aliases-package: cn.fw.rp.db cn.fw.data.base.db.query
  mapper-locations: classpath:mapper/*.xml
  configuration:
    log-impl: org.apache.ibatis.logging.stdout.StdOutImpl

jedis:
  pool:
    host: 192.168.0.8
    #    host: 127.0.0.1
    port: 6379
    config:
      maxActive: 50
      maxIdle: 20
      minIdle: 3
      maxWaitMillis: 1000
      testOnBorrow: false
      testOnReturn: false
      testWhileIdle: true

auth:
  aes:
    key: bN7DVjFMJPcoWDcR
  ignore:
    start-with: /user/*,/role/*,/user/login,/v2/api-docs,/swagger-resources/**

logging:
  #  path: ${dynamic.log.path}
  level:
    root: info


upload:
  path: F:/RP_UPLOAD