• 徐俊's avatar
    xujun · 9384aa84
    徐俊 authored
    9384aa84
application.yml 5.55 KB
spring:
  web:
    resources:
      static-locations: classpath:/
  thymeleaf:
    prefix:  classpath:/template/
    suffix: .html
  application:
    name: science-admin
  profiles:
    #    active: '@profiles.active@'
    active: 'local'
  http:
    encoding:
      force: true
  servlet:
    multipart:
      max-file-size: 20MB
      max-request-size: 20MB
  jackson:
    dateFormat: yyyy-MM-dd HH:mm:ss
    time-zone: GMT+8
  resources:
    static-locations: classpath:/META-INF/resources/,classpath:/resources/, classpath:/static/, classpath:/public/, file:D:/static
server:
  port: 8095
  connectionTimeout: 180000
  tomcat:
    uri-encoding: UTF-8
    #最大并发数
    max-threads: 1000
    #接受和处理的最大连接数
    max-connections: 20000
    #初始化时创建的线程数
    min-SpareThreads: 20
    acceptCount: 700

mybatis-plus:
  global-config:
    banner: false
    db-config:
      id-type: auto
  mapper-locations: classpath*:mapper/*.xml
mybatis:
  custom-cache:
    flushInterval: 3600

# log
logging:
  file: /home/data/logs/${spring.application.name}.log
  errorFile: /home/data/logs/${spring.application.name}_error.log
  fileMaxHistory: 30
  fileMaxSize: 50MB
  pattern:
    console: '%clr(%d{yyyy-MM-dd HH:mm:ss.SSS}){faint} %clr(%5p) %clr(${PID} [%X{track_id}] ${spring.application.name}){magenta} %clr([%15.15t]){faint} %clr(%-40.40logger{39}){cyan} %clr(:){faint} %m%n%wEx'

# doc
swagger:
  enable: true
  title: 贵州省卫生健康科研项目管理系统
  description: "补充说明详见wiki http://wiki.yiboshi.com/pages/viewpage.action?pageId=8454338"
  basePackage: com.yiboshi.science.rest.v1
  globalHeader: true

---
#贵州省卫生健康科研项目管理系统(本地环境)
spring:
  profiles: local
  datasource:
    driver-class-name: com.mysql.cj.jdbc.Driver
    url: jdbc:mysql://ybs01beta.mysql.rds.aliyuncs.com/yn_srp_system?useUnicode=true&characterEncoding=UTF-8&autoReconnect=true&useSSL=false&serverTimezone=Asia/Shanghai
    username: yn_kysb
    password: '&Zk4obO7v@'
  redis:
    # 超时时间
    timeout: 10000ms
    # 服务器地址
    host: 192.168.1.95
    # 服务器端口
    port: 6379
    # 数据库
    database: 4
    # 密码
    password: Ynbys2@)@)
    lettuce:
      pool:
        # 最大连接数(默认8)
        max-active: 1024
        # 最大连接阻塞等待时间,默认-1
        max-wait: 10000ms
        # 最大空闲连接
        max-idle: 200
        # 最小空闲连接
        min-idle: 2

---
#内蒙卫生健康科研项目管理系统(测试环境)
spring:
  profiles: test
  datasource:
    driver-class-name: com.mysql.cj.jdbc.Driver
    url: jdbc:mysql://ybs01beta.mysql.rds.aliyuncs.com/yn_srp_system?useUnicode=true&characterEncoding=UTF-8&autoReconnect=true&useSSL=false&serverTimezone=Asia/Shanghai
    username: yn_kysb
    password: '&Zk4obO7v@'
  redis:
    # 超时时间
    timeout: 10000ms
    # 服务器地址
    host: 192.168.1.23
    # 服务器端口
    port: 6379
    # 数据库
    database: 4
    # 密码
    password: 123456
    lettuce:
      pool:
        # 最大连接数(默认8)
        max-active: 1024
        # 最大连接阻塞等待时间,默认-1
        max-wait: 10000ms
        # 最大空闲连接
        max-idle: 200
        # 最小空闲连接
        min-idle: 5

---
#贵州省卫生健康科研项目管理系统(开发环境)
spring:
  profiles: dev
  datasource:
    driver-class-name: com.mysql.cj.jdbc.Driver
    url: jdbc:mysql://ybs01beta.mysql.rds.aliyuncs.com/yn_srp_system?useUnicode=true&characterEncoding=UTF-8&autoReconnect=true&useSSL=false&serverTimezone=Asia/Shanghai
    username: yn_kysb
    password: '&Zk4obO7v@'
  redis:
    # 超时时间
    timeout: 10000ms
    # 服务器地址
    host: beta-reids-pub.redis.rds.aliyuncs.com
    # 服务器端口
    port: 6379
    # 数据库
    database: 4
    # 密码
    password: yn_kysb:&Zk4obO7v@
    lettuce:
      pool:
        # 最大连接数(默认8)
        max-active: 1024
        # 最大连接阻塞等待时间,默认-1
        max-wait: 10000ms
        # 最大空闲连接
        max-idle: 200
        # 最小空闲连接
        min-idle: 5

---
#贵州省卫生健康科研项目管理系统(生成环境)
spring:
  profiles: prod
  datasource:
    driver-class-name: com.mysql.cj.jdbc.Driver
    url: jdbc:mysql://nmg-kysb.mysql.rds.aliyuncs.com/yn_srp_system?useUnicode=true&characterEncoding=UTF-8&autoReconnect=true&useSSL=false&serverTimezone=Asia/Shanghai
    username: yhbj_yn
    password: 'WpKJS2ZEx&35DrU'
  redis:
    # 超时时间
    timeout: 10000ms
    # 服务器地址
    host: nmg-kysb.redis.rds.aliyuncs.com
    # 服务器端口
    port: 6379
    # 数据库
    database: 7
    # 密码
    password: yhbj_yn:WpKJS2ZEx&35DrU
    lettuce:
      pool:
        # 最大连接数(默认8)
        max-active: 1024
        # 最大连接阻塞等待时间,默认-1
        max-wait: 10000ms
        # 最大空闲连接
        max-idle: 200
        # 最小空闲连接
        min-idle: 5
---
# 登录相关配置
verification:
  #  验证码
  verification-code:
    #  验证码类型配置 查看 LoginProperties 类
    code-type: spec
    #  登录图形验证码有效时间/分钟
    expiration: 5
    #  验证码高度
    width: 111
    #  验证码宽度
    heigth: 36
    # 内容长度
    length: 4
    # 字体名称,为空则使用默认字体
    font-name:
    # 字体大小
    font-size: 25
---
system:
  defaultCodeLength: 5
  # 字体大小 贵州科研23  # 内蒙科研 24
  systemId: 24
  systemName: 云南省卫生健康科技项目管理系统
---