application.yml 1.4 KB
server:
  #配置服务器启动端口
  port: 8085

spring:
  application:
    name: qgyun-xieyunhui
  datasource:
    url: jdbc:mysql://192.168.0.35:3306/qgyun-online?characterEncoding=utf-8&useSSL=false
    username: root
    password: qgutech.com
    type: com.alibaba.druid.pool.DruidDataSource
    driver-class-name: com.mysql.jdbc.Driver
    druid:
      initialSize: 5
      minIdle: 5
      maxActive: 20
      maxWait: 60000
      timeBetweenEvictionRunsMillis: 60000
      minEvictableIdleTimeMillis: 30000
      validationQuery: SELECT 1
      testWhileIdle: true
      testOnBorrow: false
      testOnReturn: false
      poolPreparedStatements: true
      maxPoolPreparedStatementPerConnectionSize: 20
      filters: stat,wall
      connectionProperties: druid.stat.mergeSql=true;druid.stat.slowSqlMillis=5000
      useGlobalDataSourceStat: true
  redis:
    port: 6379
    host: qgyun.server.redis
swagger:
  enable: true

#mybatis配置别名
#mapper资源地址必须为mapper文件夹下,eg:mapper/user
mybatis:
  type-aliases-package: com.qgutech.xieyunhui.qgyun.**.model

# 打印sql
logging:
  level:
    com.qgutech.xieyunhui.qgyun: DEBUG

#mybatis初始配置,是读取枚举类型字段
mapper:
  enumAsSimpleType: true

context:
  keys:
    - userId
    - username
    - corpCode
    - superAdmin
    - sessionId
qgyun:
  dynamicDataSource:
    enabled: false
    
export:
  system:
    path: /tmp/download/