application-test.yml 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222
  1. # 项目相关配置
  2. ylx:
  3. # 名称
  4. name: NightFragrance
  5. # 版本
  6. version: 3.8.7
  7. # 版权年份
  8. copyrightYear: 2024
  9. # 文件路径 示例( Windows配置D:/nightFragrance/uploadPath,Linux配置 /home/nightFragrance/uploadPath)
  10. profile: /home/nightFragrance/uploadPath
  11. # 获取ip地址开关
  12. addressEnabled: false
  13. # 验证码类型 math 数字计算 char 字符验证
  14. captchaType: math
  15. # 开发环境配置
  16. server:
  17. # 服务器的HTTP端口,默认为8080
  18. port: 8080
  19. servlet:
  20. # 应用的访问路径
  21. context-path: /
  22. tomcat:
  23. # tomcat的URI编码
  24. uri-encoding: UTF-8
  25. # 连接数满后的排队数,默认为100
  26. accept-count: 1000
  27. threads:
  28. # tomcat最大线程数,默认为200
  29. max: 800
  30. # Tomcat启动初始化的线程数,默认值10
  31. min-spare: 100
  32. # 日志配置
  33. logging:
  34. level:
  35. com.ylx: debug
  36. org.springframework: warn
  37. # 用户配置
  38. user:
  39. password:
  40. # 密码最大错误次数
  41. maxRetryCount: 5
  42. # 密码锁定时间(默认10分钟)
  43. lockTime: 10
  44. # Spring配置
  45. spring:
  46. # 资源信息
  47. messages:
  48. # 国际化资源文件路径
  49. basename: i18n/messages
  50. datasource:
  51. type: com.alibaba.druid.pool.DruidDataSource
  52. driverClassName: com.mysql.cj.jdbc.Driver
  53. druid:
  54. # 主库数据源
  55. master:
  56. url: jdbc:mysql://47.92.254.66:3306/night_fragrance?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
  57. username: root
  58. password: '@RqGHG#KZ*C9ytkQ'
  59. # 从库数据源
  60. slave:
  61. # 从数据源开关/默认关闭
  62. enabled: false
  63. url:
  64. username:
  65. password:
  66. # 初始连接数
  67. initialSize: 5
  68. # 最小连接池数量
  69. minIdle: 10
  70. # 最大连接池数量
  71. maxActive: 20
  72. # 配置获取连接等待超时的时间
  73. maxWait: 60000
  74. # 配置连接超时时间
  75. connectTimeout: 30000
  76. # 配置网络超时时间
  77. socketTimeout: 60000
  78. # 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒
  79. timeBetweenEvictionRunsMillis: 60000
  80. # 配置一个连接在池中最小生存的时间,单位是毫秒
  81. minEvictableIdleTimeMillis: 300000
  82. # 配置一个连接在池中最大生存的时间,单位是毫秒
  83. maxEvictableIdleTimeMillis: 900000
  84. # 配置检测连接是否有效
  85. validationQuery: SELECT 1 FROM DUAL
  86. testWhileIdle: true
  87. testOnBorrow: false
  88. testOnReturn: false
  89. webStatFilter:
  90. enabled: true
  91. statViewServlet:
  92. enabled: true
  93. # 设置白名单,不填则允许所有访问
  94. allow:
  95. url-pattern: /druid/*
  96. # 控制台管理用户名和密码
  97. login-username: ruoyi
  98. login-password: 123456
  99. filter:
  100. stat:
  101. enabled: true
  102. # 慢SQL记录
  103. log-slow-sql: true
  104. slow-sql-millis: 1000
  105. merge-sql: true
  106. wall:
  107. config:
  108. multi-statement-allow: true
  109. # 文件上传
  110. servlet:
  111. multipart:
  112. # 单个文件大小
  113. max-file-size: 10MB
  114. # 设置总上传的文件大小
  115. max-request-size: 20MB
  116. # 服务模块
  117. devtools:
  118. restart:
  119. # 热部署开关
  120. enabled: false
  121. # redis 配置
  122. redis:
  123. # 地址
  124. host: 172.24.144.218
  125. # 端口,默认为6379
  126. port: 6379
  127. # 数据库索引
  128. database: 0
  129. # 密码
  130. password: sxzgkj@2023
  131. # 连接超时时间
  132. timeout: 10s
  133. lettuce:
  134. pool:
  135. # 连接池中的最小空闲连接
  136. min-idle: 0
  137. # 连接池中的最大空闲连接
  138. max-idle: 8
  139. # 连接池的最大数据库连接数
  140. max-active: 8
  141. # #连接池最大阻塞等待时间(使用负值表示没有限制)
  142. max-wait: -1ms
  143. # token配置
  144. token:
  145. # 令牌自定义标识
  146. header: Authorization
  147. # 令牌密钥
  148. secret: smadedloswxcxstufwzgd
  149. # 令牌有效期(默认30分钟)
  150. expireTime: 30
  151. ## MyBatis配置
  152. #mybatis:
  153. # # 搜索指定包别名
  154. # typeAliasesPackage: com.ylx.**.domain
  155. # # 配置mapper的扫描,找到所有的mapper.xml映射文件
  156. # mapperLocations: classpath*:mapper/**/*Mapper.xml
  157. # # 加载全局的配置文件
  158. # configLocation: classpath:mybatis/mybatis-config.xml
  159. # MyBatis Plus配置
  160. mybatis-plus:
  161. # 搜索指定包别名
  162. typeAliasesPackage: com.ylx.**.domain
  163. # 配置mapper的扫描,找到所有的mapper.xml映射文件
  164. mapperLocations: classpath*:mapper/**/*Mapper.xml
  165. # 加载全局的配置文件
  166. configLocation: classpath:mybatis/mybatis-config.xml
  167. global-config:
  168. db-config:
  169. logic-delete-field: flag # 全局逻辑删除的实体字段名(since 3.3.0,配置后可以忽略不配置步骤2)
  170. logic-delete-value: 1 # 逻辑已删除值(默认为 1)
  171. logic-not-delete-value: 0 # 逻辑未删除值(默认为 0)
  172. # PageHelper分页插件
  173. pagehelper:
  174. helperDialect: mysql
  175. supportMethodsArguments: true
  176. params: count=countSql
  177. # Swagger配置
  178. swagger:
  179. # 是否开启swagger
  180. enabled: true
  181. # 请求前缀
  182. pathMapping: /dev-api
  183. # 微信小程序
  184. wx:
  185. base-url: https://api.weixin.qq.com/
  186. # AppID(小程序ID)
  187. app-id: wxe8661ef542cd963c
  188. # AppSecret(小程序密钥)
  189. app-secret: 7439a36812c1850d060567bce51159ec
  190. # 商户号
  191. mch-id: ""
  192. # 商户秘钥
  193. mch-key: ""
  194. # 异步回调地址
  195. notify-url: ""
  196. # 证书地址
  197. cert-path: ""
  198. # 证书秘钥地址
  199. cert-key-path: ""
  200. # 微信平台证书
  201. plat-form-path: ""
  202. msgDataFormat: JSON
  203. # 防止XSS攻击
  204. xss:
  205. # 过滤开关
  206. enabled: true
  207. # 排除链接(多个用逗号分隔)
  208. excludes: /system/notice
  209. # 匹配链接
  210. urlPatterns: /system/*,/monitor/*,/tool/*