application-dev.yml 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253
  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: D:/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://localhost:3306/ry-vue?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
  57. username: root
  58. password: 1234
  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: localhost
  125. # 端口,默认为6379
  126. port: 6379
  127. # 数据库索引
  128. database: 0
  129. # 密码
  130. password: 123456
  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. fare:
  185. # 起步价
  186. base-fare: 9.3
  187. # 超出起步价后每公里费用
  188. additional-fare-per-km: 2.4
  189. # 起步距离(公里)
  190. base-distance-km: 3
  191. # 微信小程序
  192. wx:
  193. base-url: https://api.weixin.qq.com/
  194. # AppID(小程序ID)
  195. app-id: wxb2ae0f4ee11e8705
  196. # app-id: wxe8661ef542cd963c
  197. # AppSecret(小程序密钥)
  198. app-secret: 28504227c2662cfb1b39a5baf750bb59
  199. # app-secret: 7439a36812c1850d060567bce51159ec
  200. # 商户号
  201. mch-id: 1675015090
  202. # 商户秘钥
  203. mch-key: 39C9AIJ1RQKT3I8V16BYZ6LLBI0H30NB
  204. # 异步回调地址
  205. notify-url: https://48131076.r21.cpolar.top/wx/pay/payNotify
  206. # 异步退款回调地址
  207. refund-Notify: https://48131076.r21.cpolar.top/wx/pay/refundNotify
  208. # 证书地址
  209. cert-path: D:/1675015090_20240424_cert/apiclient_cert.pem
  210. # 证书秘钥地址
  211. cert-key-path: D:/1675015090_20240424_cert/apiclient_key.pem
  212. # 微信平台证书
  213. plat-form-path: D:/1675015090_20240424_cert/plateForm.pem
  214. #通知类型1
  215. template_id_1: KPo5KM1R-_A6iBWOZpnA_J1w7ybORWboYqJX-PN0diQ
  216. #通知类型2
  217. wx.miniapp.msg.template_id_2: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
  218. msgDataFormat: JSON
  219. # 微信公众号
  220. wechat:
  221. mpAppId: wxa408092ddcec15b8
  222. mpAppSecret: 3d0953e32e84180b945ace15050365c6
  223. # 获取code
  224. get-code-url: https://open.weixin.qq.com/connect/oauth2/authorize
  225. # 回调地址
  226. redirect-url: https://433a2453.r12.cpolar.top/weChat/getAccessToken
  227. # 回调地址
  228. access-token-url: https://api.weixin.qq.com/sns/oauth2/access_token
  229. # 防止XSS攻击
  230. xss:
  231. # 过滤开关
  232. enabled: true
  233. # 排除链接(多个用逗号分隔)
  234. excludes: /system/notice
  235. # 匹配链接
  236. urlPatterns: /system/*,/monitor/*,/tool/*