| | |
| | | spring: |
| | | application: |
| | | name: system-server |
| | | |
| | | profiles: |
| | | active: local |
| | | |
| | | main: |
| | | allow-circular-references: true # 允许循环依赖,因为项目是三层架构,无法避免这个情况。 |
| | | allow-bean-definition-overriding: true # 允许 Bean 覆盖,例如说 Feign 等会存在重复定义的服务 |
| | | |
| | | config: |
| | | import: |
| | | - optional:classpath:application-${spring.profiles.active}.yaml # 加载【本地】配置 |
| | | - optional:nacos:${spring.application.name}-${spring.profiles.active}.yaml # 加载【Nacos】的配置 |
| | | |
| | | # Servlet 配置 |
| | | servlet: |
| | |
| | | type: REDIS |
| | | redis: |
| | | time-to-live: 1h # 设置过期时间为 1 小时 |
| | | |
| | | server: |
| | | port: 48081 |
| | | |
| | | logging: |
| | | file: |
| | | name: ${user.home}/logs/${spring.application.name}.log # 日志文件名,全路径 |
| | | |
| | | --- #################### 接口文档配置 #################### |
| | | |
| | |
| | | version: ${iailab.info.version} |
| | | base-package: ${iailab.info.base-package} |
| | | captcha: |
| | | enable: true # 验证码的开关,默认为 true; |
| | | enable: false # 验证码的开关,默认为 true; |
| | | tenant: # 多租户相关配置项 |
| | | enable: true |
| | | ignore-urls: |