application-dev.yml 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  1. # 项目相关配置
  2. monitor:
  3. # 名称
  4. name: monitor
  5. # 版本
  6. version: 1.0.0
  7. # 版权年份
  8. copyrightYear: 2023
  9. # 实例演示开关
  10. demoEnabled: true
  11. # 文件路径 示例( Windows配置D:/monitor/uploadPath,Linux配置 /home/monitor/uploadPath)
  12. profile: D:/monitor/uploadPath
  13. # 获取ip地址开关
  14. addressEnabled: false
  15. # 验证码类型 math 数组计算 char 字符验证
  16. captchaType: math
  17. # 全部用户是否开启接口权限校验,排除admin用户
  18. permissionsEnable: false
  19. # 开发环境配置
  20. server:
  21. tomcat:
  22. # tomcat的URI编码
  23. uri-encoding: UTF-8
  24. # 连接数满后的排队数,默认为100
  25. accept-count: 1000
  26. threads:
  27. # tomcat最大线程数,默认为200
  28. max: 800
  29. # Tomcat启动初始化的线程数,默认值10
  30. min-spare: 100
  31. # 日志配置
  32. logging:
  33. level:
  34. com.ozs: debug
  35. org.springframework: warn
  36. # 用户配置
  37. user:
  38. password:
  39. # 密码最大错误次数
  40. maxRetryCount: 5
  41. # 密码锁定时间(默认10分钟)
  42. lockTime: 10
  43. # Spring配置
  44. spring:
  45. # 资源信息
  46. messages:
  47. # 国际化资源文件路径
  48. basename: i18n/messages
  49. # 文件上传
  50. servlet:
  51. multipart:
  52. # 单个文件大小
  53. max-file-size: 10MB
  54. # 设置总上传的文件大小
  55. max-request-size: 20MB
  56. # 服务模块
  57. devtools:
  58. restart:
  59. # 热部署开关
  60. enabled: true
  61. # redis 配置
  62. redis:
  63. # 地址
  64. host: localhost
  65. # 端口,默认为6379
  66. port: 6379
  67. # 数据库索引
  68. database: 0
  69. # 密码
  70. password:
  71. # 连接超时时间
  72. timeout: 100s
  73. lettuce:
  74. pool:
  75. # 连接池中的最小空闲连接
  76. min-idle: 0
  77. # 连接池中的最大空闲连接
  78. max-idle: 8
  79. # 连接池的最大数据库连接数
  80. max-active: 8
  81. # #连接池最大阻塞等待时间(使用负值表示没有限制)
  82. max-wait: -1ms
  83. # token配置
  84. token:
  85. # 令牌自定义标识
  86. header: Authorization
  87. # 令牌密钥
  88. secret: abcdefghijklmnopqrstuvwxyz
  89. # 令牌有效期(默认30分钟)
  90. expireTime: 3000
  91. # MyBatis配置
  92. mybatis:
  93. # 搜索指定包别名
  94. typeAliasesPackage: com.ozs.**.system
  95. # 配置mapper的扫描,找到所有的mapper.xml映射文件
  96. mapperLocations: classpath*:mapper/**/*Mapper.xml
  97. # 加载全局的配置文件
  98. configLocation: classpath:mybatis/mybatis-config.xml
  99. # MyBatis-plus配置
  100. mybatis-plus:
  101. config-location: classpath:mybatis/mybatis-config.xml
  102. typeAliasesPackage: com.ozs.**.system
  103. mapperLocations: classpath*:mapper/**/*Mapper.xml
  104. # PageHelper分页插件
  105. pagehelper:
  106. helperDialect: mysql
  107. supportMethodsArguments: true
  108. params: count=countSql
  109. # Swagger配置
  110. swagger:
  111. # 是否开启swagger
  112. enabled: true
  113. # 请求前缀
  114. # pathMapping: /dev-api
  115. pathMapping: /
  116. # 防止XSS攻击
  117. xss:
  118. # 过滤开关
  119. enabled: true
  120. # 排除链接(多个用逗号分隔)
  121. excludes: /system/notice
  122. # 匹配链接
  123. urlPatterns: /system/*,/monitor/*,/tool/*