| | |
| | | org.springframework: warn |
| | | config: classpath:logback.xml |
| | | |
| | | # 用户配置 |
| | | user: |
| | | password: |
| | | # 密码最大错误次数 |
| | | maxRetryCount: 5 |
| | | # 密码锁定时间(默认10分钟) |
| | | lockTime: 10 |
| | | |
| | | # Spring配置 |
| | | spring: |
| | | application: |
| | |
| | | # 热部署开关 |
| | | enabled: true |
| | | mvc: |
| | | pathmatch: |
| | | # 适配 boot 2.6 路由与 springfox 兼容 |
| | | matching-strategy: ANT_PATH_MATCHER |
| | | format: |
| | | date-time: yyyy-MM-dd HH:mm:ss |
| | | jackson: |
| | | # 日期格式化 |
| | | date-format: yyyy-MM-dd HH:mm:ss |
| | |
| | | # 在多人登录同一账号时,是否共用一个token (为true时所有登录共用一个token, 为false时每次登录新建一个token) |
| | | is-share: false |
| | | # 是否尝试从header里读取token |
| | | is-read-head: true |
| | | is-read-header: true |
| | | # 是否尝试从cookie里读取token |
| | | is-read-cookie: false |
| | | # token前缀 |
| | | token-prefix: "Bearer" |
| | | # jwt秘钥 |
| | | jwt-secret-key: abcdefghijklmnopqrstuvwxyz |
| | | # 是否输出操作日志 |
| | | is-log: true |
| | | |
| | | # security配置 |
| | | security: |
| | |
| | | - /**/*.js |
| | | # swagger 文档配置 |
| | | - /favicon.ico |
| | | - /doc.html |
| | | - /swagger-ui/** |
| | | - /*/api-docs |
| | | - /*/api-docs/** |
| | | # druid 监控配置 |
| | | - /druid/** |
| | | # actuator 监控配置 |
| | | - /actuator |
| | | - /actuator/** |
| | |
| | | |
| | | springdoc: |
| | | swagger-ui: |
| | | # 修改Swagger UI路径 |
| | | path: /doc.html |
| | | # 开启Swagger UI界面 |
| | | enabled: true |
| | | api-docs: |
| | | # 修改api-docs路径 |
| | | path: /v3/api-docs |
| | | # 开启api-docs |
| | | enabled: true |
| | | # 持久化认证数据 |
| | | persistAuthorization: true |
| | | #这里定义了两个分组,可定义多个,也可以不定义 |
| | | group-configs: |
| | | - group: 演示模块 |
| | | - group: 1.演示模块 |
| | | packages-to-scan: com.ruoyi.demo |
| | | - group: 系统模块 |
| | | - group: 2.系统模块 |
| | | packages-to-scan: com.ruoyi.web |
| | | - group: 代码生成模块 |
| | | - group: 3.代码生成模块 |
| | | packages-to-scan: com.ruoyi.generator |
| | | |
| | | # 防止XSS攻击 |
| | |
| | | # 线程池维护线程所允许的空闲时间 |
| | | keepAliveSeconds: 300 |
| | | |
| | | --- # redisson 缓存配置 |
| | | redisson: |
| | | cacheGroup: |
| | | # 用例: @Cacheable(cacheNames="groupId", key="#XXX") 方可使用缓存组配置 |
| | | - groupId: redissonCacheMap |
| | | # 组过期时间(脚本监控) |
| | | ttl: 60000 |
| | | # 组最大空闲时间(脚本监控) |
| | | maxIdleTime: 60000 |
| | | # 组最大长度 |
| | | maxSize: 0 |
| | | - groupId: testCache |
| | | ttl: 1000 |
| | | maxIdleTime: 500 |
| | | |
| | | --- # 分布式锁 lock4j 全局配置 |
| | | lock4j: |
| | | # 获取分布式锁超时时间,默认为 3000 毫秒 |
| | | acquire-timeout: 3000 |
| | | # 分布式锁的超时时间,默认为 30 毫秒 |
| | | # 分布式锁的超时时间,默认为 30 秒 |
| | | expire: 30000 |
| | | |
| | | --- # Actuator 监控端点的配置项 |
| | |
| | | endpoints: |
| | | web: |
| | | exposure: |
| | | # 需要开放的端点。默认值只打开 health 和 info 两个端点。通过设置 * ,可以开放所有端点。 |
| | | # 生产环境不建议放开所有 根据项目需求放开即可 |
| | | include: @endpoints.include@ |
| | | include: '*' |
| | | endpoint: |
| | | health: |
| | | show-details: ALWAYS |
| | | logfile: |
| | | external-file: ./logs/sys-console.log |