application-pro.yml 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259
  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. profile: /nightFragrance/uploadPath
  12. # 获取ip地址开关
  13. addressEnabled: false
  14. # 验证码类型 math 数字计算 char 字符验证
  15. captchaType: math
  16. # 开发环境配置
  17. server:
  18. # 服务器的HTTP端口,默认为8080
  19. port: 8080
  20. servlet:
  21. # 应用的访问路径
  22. context-path: /
  23. tomcat:
  24. # tomcat的URI编码
  25. uri-encoding: UTF-8
  26. # 连接数满后的排队数,默认为100
  27. accept-count: 1000
  28. threads:
  29. # tomcat最大线程数,默认为200
  30. max: 800
  31. # Tomcat启动初始化的线程数,默认值10
  32. min-spare: 100
  33. # 日志配置
  34. logging:
  35. level:
  36. com.ylx: debug
  37. org.springframework: warn
  38. # 用户配置
  39. user:
  40. password:
  41. # 密码最大错误次数
  42. maxRetryCount: 5
  43. # 密码锁定时间(默认10分钟)
  44. lockTime: 10
  45. # Spring配置
  46. spring:
  47. # 资源信息
  48. messages:
  49. # 国际化资源文件路径
  50. basename: i18n/messages
  51. datasource:
  52. type: com.alibaba.druid.pool.DruidDataSource
  53. driverClassName: com.mysql.cj.jdbc.Driver
  54. druid:
  55. # 主库数据源
  56. master:
  57. # url: jdbc:mysql://39.98.239.48:3366/night_fragrance?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
  58. url: jdbc:mysql://rm-8vbaejxof1xh06o9r.mysql.zhangbei.rds.aliyuncs.com:3306/night_fragrance?serverTimezone=Asia/Shanghai&allowMultiQueries=true&useUnicode=true&characterEncoding=UTF-8&rewriteBatchedStatements=true
  59. username: sxzgkj
  60. password: 'Iy$@$koH@oURxyvw'
  61. # 从库数据源
  62. slave:
  63. # 从数据源开关/默认关闭
  64. enabled: false
  65. url:
  66. username:
  67. password:
  68. # 初始连接数
  69. initialSize: 5
  70. # 最小连接池数量
  71. minIdle: 10
  72. # 最大连接池数量
  73. maxActive: 20
  74. # 配置获取连接等待超时的时间
  75. maxWait: 60000
  76. # 配置连接超时时间
  77. connectTimeout: 30000
  78. # 配置网络超时时间
  79. socketTimeout: 60000
  80. # 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒
  81. timeBetweenEvictionRunsMillis: 60000
  82. # 配置一个连接在池中最小生存的时间,单位是毫秒
  83. minEvictableIdleTimeMillis: 300000
  84. # 配置一个连接在池中最大生存的时间,单位是毫秒
  85. maxEvictableIdleTimeMillis: 900000
  86. # 配置检测连接是否有效
  87. validationQuery: SELECT 1 FROM DUAL
  88. testWhileIdle: true
  89. testOnBorrow: false
  90. testOnReturn: false
  91. webStatFilter:
  92. enabled: true
  93. statViewServlet:
  94. enabled: true
  95. # 设置白名单,不填则允许所有访问
  96. allow:
  97. url-pattern: /druid/*
  98. # 控制台管理用户名和密码
  99. login-username: ruoyi
  100. login-password: 123456
  101. filter:
  102. stat:
  103. enabled: true
  104. # 慢SQL记录
  105. log-slow-sql: true
  106. slow-sql-millis: 1000
  107. merge-sql: true
  108. wall:
  109. config:
  110. multi-statement-allow: true
  111. # 文件上传
  112. servlet:
  113. multipart:
  114. # 单个文件大小
  115. max-file-size: 10MB
  116. # 设置总上传的文件大小
  117. max-request-size: 20MB
  118. # 服务模块
  119. devtools:
  120. restart:
  121. # 热部署开关
  122. enabled: false
  123. # redis 配置
  124. redis:
  125. # 地址
  126. host: 39.98.34.94
  127. # 端口,默认为6379
  128. port: 6379
  129. # 数据库索引
  130. database: 0
  131. # 密码
  132. password: sxzgkj@2023
  133. # 连接超时时间
  134. timeout: 10s
  135. lettuce:
  136. pool:
  137. # 连接池中的最小空闲连接
  138. min-idle: 0
  139. # 连接池中的最大空闲连接
  140. max-idle: 8
  141. # 连接池的最大数据库连接数
  142. max-active: 8
  143. # #连接池最大阻塞等待时间(使用负值表示没有限制)
  144. max-wait: -1ms
  145. # token配置
  146. token:
  147. # 令牌自定义标识
  148. header: Authorization
  149. # 令牌密钥
  150. secret: smadedloswxcxstufwzgd
  151. # 令牌有效期(默认30分钟)
  152. expireTime: 10080
  153. ## MyBatis配置
  154. #mybatis:
  155. # # 搜索指定包别名
  156. # typeAliasesPackage: com.ylx.**.domain
  157. # # 配置mapper的扫描,找到所有的mapper.xml映射文件
  158. # mapperLocations: classpath*:mapper/**/*Mapper.xml
  159. # # 加载全局的配置文件
  160. # configLocation: classpath:mybatis/mybatis-config.xml
  161. # MyBatis Plus配置
  162. mybatis-plus:
  163. # 搜索指定包别名
  164. typeAliasesPackage: com.ylx.**.domain
  165. # 配置mapper的扫描,找到所有的mapper.xml映射文件
  166. mapperLocations: classpath*:mapper/**/*Mapper.xml
  167. # 加载全局的配置文件
  168. configLocation: classpath:mybatis/mybatis-config.xml
  169. global-config:
  170. db-config:
  171. logic-delete-field: flag # 全局逻辑删除的实体字段名(since 3.3.0,配置后可以忽略不配置步骤2)
  172. logic-delete-value: 1 # 逻辑已删除值(默认为 1)
  173. logic-not-delete-value: 0 # 逻辑未删除值(默认为 0)
  174. # PageHelper分页插件
  175. pagehelper:
  176. helperDialect: mysql
  177. supportMethodsArguments: true
  178. params: count=countSql
  179. # Swagger配置
  180. swagger:
  181. # 是否开启swagger
  182. enabled: true
  183. # 请求前缀
  184. pathMapping: /dev-api
  185. # 车费计算
  186. fare:
  187. # 起步价
  188. base-fare: 9.3
  189. # 超出起步价后每公里费用
  190. additional-fare-per-km: 2.4
  191. # 起步距离(公里)
  192. base-distance-km: 3
  193. # 微信小程序
  194. wx:
  195. base-url: https://api.weixin.qq.com/
  196. # AppID(小程序ID)
  197. app-id: wxb2ae0f4ee11e8705
  198. # AppSecret(小程序密钥)
  199. app-secret: 28504227c2662cfb1b39a5baf750bb59
  200. # 商户号
  201. # mch-id: 1675015090
  202. mch-id: 1716293620
  203. # 商户秘钥
  204. #mch-key: 39C9AIJ1RQKT3I8V16BYZ6LLBI0H30NB
  205. mch-key: 29138927a706e34282df802feacfc18r
  206. # 异步回调地址
  207. notify-url: https://test.baoxianzhanggui.com/nightFragrance/wx/pay/payNotify
  208. # 异步退款回调地址
  209. refund-Notify: https://test.baoxianzhanggui.com/nightFragrance/wx/pay/refundNotify
  210. # 证书地址
  211. cert-path: /nightFragrance/pay/apiclient_cert.pem
  212. # 证书秘钥地址
  213. cert-key-path: /nightFragrance/pay/apiclient_key.pem
  214. # 微信平台证书
  215. plat-form-path: /nightFragrance/pay/plateForm.pem
  216. msgDataFormat: JSON
  217. #通知类型1
  218. template_id_1: KPo5KM1R-_A6iBWOZpnA_J1w7ybORWboYqJX-PN0diQ
  219. #通知类型2
  220. wx.miniapp.msg.template_id_2: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
  221. # 微信公众号
  222. wechat:
  223. mpAppId: wxa72f643173a90106
  224. mpAppSecret: 6ceb4647506a4f1654bb10773b227357
  225. # 获取code
  226. get-code-url: https://open.weixin.qq.com/connect/oauth2/authorize
  227. # 回调地址
  228. redirect-url: https://test.baoxianzhanggui.com/nightFragrance/sq/getAccessToken
  229. # 回调地址
  230. access-token-url: https://api.weixin.qq.com/sns/oauth2/access_token
  231. # 消息模版ID订单待接单通知
  232. template-id-1: HU2LfMIes91Au9kxR3VEoNYuMayxZoPNsFRfWNCmKrQ
  233. # 入驻平台审核通知
  234. template-id-2: els5FNc0BtFbSKhxIjbzqGX_9FmxAWyBhjL95qVevYE
  235. # 防止XSS攻击
  236. xss:
  237. # 过滤开关
  238. enabled: true
  239. # 排除链接(多个用逗号分隔)
  240. excludes: /system/notice
  241. # 匹配链接
  242. urlPatterns: /system/*,/monitor/*,/tool/*