server:
  port: 8765

springdoc:
  swagger-ui:
    path: /swagger-ui.html
    tags-sorter: alpha
    operations-sorter: alpha
  api-docs:
    path: /v3/api-docs
  group-configs:
    - group: 'default'
      paths-to-match: '/**'
      packages-to-scan:
        - com.changhu.controller
        - com.changhu.module
knife4j:
  enable: true
  setting:
    language: zh_cn
    swagger-model-name: 实体类列表

spring:
  application:
    # 服务名称
    name: managementDevServer
  servlet:
    multipart:
      # 设置单个文件最大大小为500MB
      max-file-size: 500MB
      # 设置多个文件大小为5GB
      max-request-size: 5GB
  web:
    resources:
      # 不要为我们工程中的资源文件建立映射
      add-mappings: false
  banner:
    location: classpath:static/banner.txt
  datasource:
    type: com.alibaba.druid.pool.DruidDataSource
    driver-class-name: com.mysql.cj.jdbc.Driver
    url: jdbc:mysql://118.253.177.137:3306/police_security_dev?serverTimezone=Asia/Shanghai&allowMultiQueries=true&useUnicode=true&characterEncoding=UTF-8&useSSL=false
    username: police_security_dev
    password: GejDeCNj3ZBSNxSP
    # druid 连接池管理
    druid:
      # 初始化时建立物理连接的个数
      initial-size: 5
      # 连接池的最小空闲数量
      min-idle: 5
      # 连接池最大连接数量
      max-active: 20
      # 获取连接时最大等待时间,单位毫秒
      max-wait: 60000
      # 申请连接的时候检测,如果空闲时间大于timeBetweenEvictionRunsMillis,执行validationQuery检测连接是否有效。
      test-while-idle: true
      # 既作为检测的间隔时间又作为testWhileIdel执行的依据
      time-between-eviction-runs-millis: 60000
      # 销毁线程时检测当前连接的最后活动时间和当前时间差大于该值时,关闭当前连接(配置连接在池中的最小生存时间)
      min-evictable-idle-time-millis: 30000
      # 用来检测数据库连接是否有效的sql 必须是一个查询语句(oracle中为 select 1 from dual)
      validation-query: SELECT 1 FROM DUAL
      # 申请连接时会执行validationQuery检测连接是否有效,开启会降低性能,默认为true
      test-on-borrow: false
      # 归还连接时会执行validationQuery检测连接是否有效,开启会降低性能,默认为true
      test-on-return: false
      # 是否缓存preparedStatement, 也就是PSCache,PSCache对支持游标的数据库性能提升巨大,比如说oracle,在mysql下建议关闭。
      pool-prepared-statements: false
      # 置监控统计拦截的filters,去掉后监控界面sql无法统计,stat: 监控统计、Slf4j:日志记录、waLL: 防御sqL注入
      filters: stat,wall,slf4j
      # 要启用PSCache,必须配置大于0,当大于0时,poolPreparedStatements自动触发修改为true。在Druid中,不会存在Oracle下PSCache占用内存过多的问题,可以把这个数值配置大一些,比如说100
      max-pool-prepared-statement-per-connection-size: -1
      # 合并多个DruidDataSource的监控数据
      use-global-data-source-stat: true
      # 通过connectProperties属性来打开mergeSql功能;慢SQL记录
      connect-properties:
        druid:
          stat:
            mergeSql: true
            slowSqlMillis: 5000
      stat-view-servlet:
        enabled: true
        url-pattern: /druid/*
        reset-enable: true
        login-username: admin
        login-password: Luozhun121400
        allow:
  cache:
    type: redis
    cache-names: common
  data:
    redis:
      database: 10
      password: lonsung301
      port: 6380
      host: 172.10.10.238
      timeout: 10s
      lettuce:
        pool:
          # 连接池最大连接数
          max-active: 200
          # 连接池最大阻塞等待时间(使用负值表示没有限制)
          max-wait: -1ms
          # 连接池中的最大空闲连接
          max-idle: 10
          # 连接池中的最小空闲连接
          min-idle: 0

mybatis-plus:
  configuration:
    log-impl: org.apache.ibatis.logging.log4j2.Log4j2Impl
  type-handlers-package: com.changhu.support.mybatisplus.handler.global
  mapper-locations: classpath*:/mapper/*.xml

logging:
  config: classpath:conf/log4j2.xml

minio:
  url: http://118.253.177.137:9000
  accessKey: admin
  secretKey: lonsung301
  bucketName: police-security-dev

sa-token:
  # token 名称(同时也是 cookie 名称)
  token-name: token
  # token 有效期(单位:秒) 默认30天,-1 代表永久有效
  timeout: 2592000
  # token 最低活跃频率(单位:秒),如果 token 超过此时间没有访问系统就会被冻结,默认-1 代表不限制,永不冻结
  active-timeout: -1
  # 是否允许同一账号多地同时登录 (为 true 时允许一起登录, 为 false 时新登录挤掉旧登录)
  is-concurrent: true
  # 在多人登录同一账号时,是否共用一个 token (为 true 时所有登录共用一个 token, 为 false 时每次登录新建一个 token)
  is-share: true
  # token 风格(默认可取值:uuid、simple-uuid、random-32、random-64、random-128、tik)
  token-style: uuid
  # 是否输出操作日志
  is-log: true
  # 是否尝试从 cookie 里读取 token
  is-read-cookie: false
  # jwt秘钥
  jwt-secret-key: a29216f8-cd60-4e96-89c5-ab6012159052

wx:
  miniapp:
    #微信小程序的appid
    appid: wx0acd1c4fcf94bdd3
    #微信小程序的Secret
    secret: 4b700dbacb42ef258537ddc61d964a17
    msgDataFormat: JSON

project:
  env: dev
  fastjson2:
    date-format: yyyy-MM-dd HH:mm:ss
  threadPool:
    thread-name-prefix: default-thread-
    core-pool-size: 10
    max-pool-size: 20
    queue-capacity: 50
    keep-alive-seconds: 60