application.yml 2.8 KB

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