application.yml 3.4 KB

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