123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139 |
- spring:
- # 数据库连接信息
- datasource:
- url: jdbc:p6spy:mysql://210.16.189.72:3326/123?autoReconnect=true&useServerPreparedStmts=false&rewriteBatchedStatements=true&characterEncoding=UTF-8&useSSL=false&allowMultiQueries=true&serverTimezone=Asia/Shanghai
- username: root
- password: kptzhu@163.com
- initial-size: 2
- min-idle: 2
- max-active: 10
- max-wait: 60000
- time-between-eviction-runs-millis: 60000
- min-evictable-idle-time-millis: 300000
- driver-class-name: com.p6spy.engine.spy.P6SpyDriver
- filters: stat
- druid:
- username: druid
- password: Gm@5418#
- login:
- enabled: false
- method:
- pointcut: net.lab1024.sa..*Service.*
- stat-view-servlet:
- enabled: false
- spring:
- datasource:
- druid:
- stat-view-servlet:
- enabled: false
- filter:
- stat:
- enabled: false
- exclusions: /*.js,*.gif,*.jpg,*.png,*.css,*.ico,/druid/*
- web-stat-filter:
- enabled: false
- # mvc swagger bugfix
- mvc:
- pathmatch:
- matching-strategy: ant_path_matcher
- # redis 连接池配置信息
- # redis:
- # database: 1
- # host: 127.0.0.1
- # lettuce:
- # pool:
- # max-active: 5
- # min-idle: 1
- # max-idle: 3
- # max-wait: 30000ms
- # port: 6379
- # timeout: 10000ms
- # password:
- # 上传文件大小配置
- servlet:
- multipart:
- max-file-size: 30MB
- max-request-size: 30MB
- # json序列化相关配置
- jackson:
- serialization:
- write-enums-using-to-string: true
- write-dates-as-timestamps: false
- deserialization:
- read-enums-using-to-string: true
- fail-on-unknown-properties: false
- default-property-inclusion: always
- date-format: yyyy-MM-dd HH:mm:ss
- time-zone: GMT+8
- # 缓存实现类型
- cache:
- type: caffeine
- #swagger: 提高swagger 方法名称有重复的日志提示
- logging:
- level:
- springfox:
- documentation:
- spring:
- web:
- readers:
- operation:
- CachingOperationNameGenerator: warn
- scanners:
- ApiListingReferenceScanner: warn
- # 文件上传 配置
- file:
- storage:
- mode: cloud
- local:
- path: ${localPath:/home}/smart_admin_v2/upload/
- cloud:
- region: oss-cn-hangzhou
- endpoint: oss-cn-hangzhou.aliyuncs.com
- bucket-name: 1024lab-smart-admin
- access-key:
- secret-key:
- url:
- expire: 7200000
- public: https://${file.storage.cloud.bucket-name}.${file.storage.cloud.endpoint}/
- # swagger 配置
- swagger:
- title: SmartAdmin
- description: SmartAdmin 2.0
- version: 2.0
- host: localhost:${server.port}
- package: net.lab1024.sa
- tag-class: net.lab1024.sa.common.constant.SwaggerTagConst
- team-url: https://www.1024lab.net/
- # RestTemplate 请求配置
- http:
- pool:
- max-total: 20
- connect-timeout: 50000
- read-timeout: 50000
- write-timeout: 50000
- keep-alive: 300000
- # token相关配置
- token:
- key: sa-jwt-key
- expire-day: 7
- # 跨域配置
- access-control-allow-origin: '*'
- # 心跳配置
- heart-beat:
- interval-seconds: 300
- # 热加载配置
- reload:
- interval-seconds: 300
|