application.yml 9.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319
  1. server:
  2. servlet:
  3. context-path: /
  4. tomcat:
  5. uri-encoding: UTF-8
  6. threads:
  7. min-spare: 50
  8. max: 1000
  9. # 与Spring Boot 2一样,默认情况下,大多数端点都不通过http公开,我们公开了所有端点。对于生产,您应该仔细选择要公开的端点。
  10. management:
  11. # health:
  12. # elasticsearch:
  13. # enabled: false
  14. # datasource:
  15. # enabled: false
  16. endpoints:
  17. web:
  18. exposure:
  19. include: '*'
  20. spring:
  21. # 要在其中注册的Spring Boot Admin Server的URL。
  22. boot:
  23. admin:
  24. client:
  25. url: http://127.0.0.1:8000
  26. cache:
  27. type: redis
  28. # Redis
  29. redis:
  30. host: 127.0.0.1
  31. port: 6379
  32. password: lilishop
  33. lettuce:
  34. pool:
  35. # 连接池最大连接数(使用负值表示没有限制) 默认 8
  36. max-active: 200
  37. # 连接池最大阻塞等待时间(使用负值表示没有限制) 默认 -1
  38. max-wait: 20
  39. # 连接池中的最大空闲连接 默认 8
  40. max-idle: 10
  41. # 连接池中的最小空闲连接 默认 8
  42. min-idle: 8
  43. # 文件大小上传配置
  44. servlet:
  45. multipart:
  46. max-file-size: 20MB
  47. max-request-size: 20MB
  48. jackson:
  49. time-zone: GMT+8
  50. serialization:
  51. #关闭jackson 对json做解析
  52. fail-on-empty-beans: false
  53. shardingsphere:
  54. datasource:
  55. # 数据库名称,可自定义,可以为多个,以逗号隔开,每个在这里定义的库,都要在下面定义连接属性
  56. names: default-datasource
  57. default-datasource:
  58. type: com.alibaba.druid.pool.DruidDataSource
  59. driverClassName: com.mysql.cj.jdbc.Driver
  60. url: jdbc:mysql://127.0.0.1:3306/lilishop?useUnicode=true&characterEncoding=utf-8&useSSL=false&allowPublicKeyRetrieval=true&serverTimezone=Asia/Shanghai
  61. username: root
  62. password: Maopeng2022@~123
  63. maxActive: 50
  64. initialSize: 20
  65. maxWait: 60000
  66. minIdle: 5
  67. timeBetweenEvictionRunsMillis: 60000
  68. minEvictableIdleTimeMillis: 300000
  69. validationQuery: SELECT 1 FROM DUAL
  70. testWhileIdle: true
  71. testOnBorrow: false
  72. testOnReturn: false
  73. #是否缓存preparedStatement,也就是PSCache。在mysql下建议关闭。 PSCache对支持游标的数据库性能提升巨大,比如说oracle。
  74. poolPreparedStatements: false
  75. #要启用PSCache,-1为关闭 必须配置大于0,当大于0时,poolPreparedStatements自动触发修改为true 可以把这个数值配置大一些,比如说100
  76. maxOpenPreparedStatements: -1
  77. #配置监控统计拦截的filters,去掉后监控界面sql无法统计,'wall'用于防火墙
  78. filters: stat,wall,log4j2
  79. #通过connectProperties属性来打开mergeSql功能;慢SQL记录
  80. connectionProperties: druid.stat.mergeSql=true;druid.stat.slowSqlMillis=5000
  81. #合并多个DruidDataSource的监控数据
  82. useGlobalDataSourceStat: true
  83. loginUsername: druid
  84. loginPassword: druid
  85. # sharding:
  86. # default-data-source-name: default-datasource
  87. # #需要拆分的表,可以设置多个 在 li_order 级别即可
  88. # tables:
  89. # #需要进行分表的逻辑表名
  90. # li_order:
  91. # #实际的表结点,下面代表的是li_order_为开头的所有表,如果能确定表的范围例如按月份分表,这里的写法是data2020.li_order_$->{2020..2021}_$->{01..12} 表示例如 li_order_2020_01 li_order_2020_03 li_order_2021_01
  92. # actual-data-nodes: data2020.li_order_$->{2019..2021}_$->{01..12}
  93. # table-strategy:
  94. # # 分表策略,根据创建日期
  95. # standard:
  96. # sharding-column: create_time
  97. # #分表策略
  98. # precise-algorithm-class-name: cn.lili.mybatis.sharding.CreateTimeShardingTableAlgorithm
  99. # #范围查询实现
  100. # range-algorithm-class-name: cn.lili.mybatis.sharding.CreateTimeShardingTableAlgorithm
  101. props:
  102. #是否打印逻辑SQL语句和实际SQL语句,建议调试时打印,在生产环境关闭
  103. sql:
  104. show: true
  105. # 忽略鉴权url
  106. ignored:
  107. urls:
  108. - /editor-app/**
  109. - /actuator**
  110. - /actuator/**
  111. - /MP_verify_qSyvBPhDsPdxvOhC.txt
  112. - /weixin/**
  113. - /source/**
  114. - /store/passport/login/**
  115. - /store/passport/login/refresh/**
  116. - /common/common/slider/**
  117. - /common/common/sms/**
  118. - /buyer/payment/cashier/**
  119. - /buyer/other/pageData/**
  120. - /buyer/other/article/**
  121. - /buyer/goods/**
  122. - /buyer/store/**
  123. - /buyer/passport/connect/**
  124. - /buyer/members/**
  125. - /buyer/passport/member/**
  126. - /buyer/passport/member/refresh/**
  127. - /buyer/promotion/pintuan/**
  128. - /buyer/promotion/seckill/**
  129. - /buyer/promotion/pointsGoods/**
  130. - /buyer/promotion/coupon
  131. - /buyer/member/evaluation/**/goodsEvaluation
  132. - /buyer/member/evaluation/**/evaluationNumber
  133. - /buyer/other/appVersion/**
  134. - /buyer/broadcast/studio/**
  135. - /manager/passport/user/login
  136. - /manager/passport/user/refresh/**
  137. - /manager/other/elasticsearch
  138. - /manager/other/customWords
  139. - /druid/**
  140. - /swagger-ui.html
  141. - /doc.html
  142. - /swagger-resources/**
  143. - /swagger/**
  144. - /webjars/**
  145. - /v2/api-docs**
  146. - /configuration/ui
  147. - /boot-admin
  148. - /manager/promotion/seckill/init
  149. - /**/*.js
  150. - /**/*.css
  151. - /**/*.png
  152. - /**/*.ico
  153. # Swagger界面内容配置
  154. swagger:
  155. title: lilishop API接口文档
  156. description: lilishop Api Documentation
  157. version: 4.2.2
  158. termsOfServiceUrl: https://pickmall.cn
  159. contact:
  160. name: lili
  161. url: https://pickmall.cn
  162. email: admin@pickmall.com
  163. # Mybatis-plus
  164. mybatis-plus:
  165. mapper-locations: classpath*:mapper/*.xml
  166. configuration:
  167. #缓存开启
  168. cache-enabled: true
  169. #日志
  170. # log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
  171. # 日志
  172. logging:
  173. # 输出级别
  174. level:
  175. cn.lili: info
  176. # org.hibernate: debug
  177. # org.springframework: debug
  178. file:
  179. # 指定路径
  180. path: logs
  181. logback:
  182. rollingpolicy:
  183. # 最大保存天数
  184. max-history: 7
  185. # 每个文件最大大小
  186. max-file-size: 5MB
  187. #加密参数
  188. jasypt:
  189. encryptor:
  190. password: lili
  191. lili:
  192. #验证码设置
  193. verification-code:
  194. #图形验证码有效时间 秒 包含滑块验证码有效时间, 以及验证通过之后,缓存中存储的验证结果有效时间
  195. effectiveTime: 300
  196. #水印
  197. watermark: LILI-SHOP
  198. #干扰项数量 最大2 默认0
  199. interfereNum: 1
  200. #允许误差像素
  201. faultTolerant: 3
  202. #短信模版配置
  203. sms:
  204. #登录
  205. LOGIN: SMS_205755300
  206. #注册
  207. REGISTER: SMS_205755298
  208. #找回密码
  209. FIND_USER: SMS_205755301
  210. #设置密码
  211. UPDATE_PASSWORD: SMS_205755297
  212. #支付密码
  213. WALLET_PASSWORD: SMS_205755301
  214. system:
  215. isDemoSite: false
  216. isTestModel: true
  217. # 脱敏级别:
  218. # 0:不做脱敏处理
  219. # 1:管理端用户手机号等信息脱敏
  220. # 2:商家端信息脱敏(为2时,表示管理端,商家端同时脱敏)
  221. sensitiveLevel: 1
  222. statistics:
  223. # 在线人数统计 X 小时。这里设置48,即统计过去48小时每小时在线人数
  224. onlineMember: 48
  225. # 当前在线人数刷新时间间隔,单位秒,设置为600,则每10分钟刷新一次
  226. currentOnlineUpdate: 600
  227. #qq lbs 申请
  228. lbs:
  229. key: 4BYBZ-7MT6S-PUAOA-6BNWL-FJUD7-UUFXT
  230. sk: zhNKVrJK6UPOhqIjn8AQvG37b9sz6
  231. #域名
  232. domain:
  233. pc: http://127.0.0.1:8888
  234. wap: http://127.0.0.1:8888
  235. seller: http://127.0.0.1:8888
  236. admin: http://127.0.0.1:8888
  237. #api地址
  238. api:
  239. buyer: https://z171l91606.51mypc.cn
  240. base: http://127.0.0.1:8888
  241. manager: http://127.0.0.1:8888
  242. seller: http://127.0.0.1:8888
  243. # jwt 细节设定
  244. jwt-setting:
  245. # token过期时间(分钟)
  246. tokenExpireTime: 30
  247. # 使用Spring @Cacheable注解失效时间
  248. cache:
  249. # 过期时间 单位秒 永久不过期设为-1
  250. timeout: 1500
  251. #多线程配置
  252. thread:
  253. corePoolSize: 5
  254. maxPoolSize: 50
  255. queueCapacity: 50
  256. data:
  257. elasticsearch:
  258. cluster-name: elasticsearch
  259. cluster-nodes: 127.0.0.1:9200
  260. index:
  261. number-of-replicas: 0
  262. number-of-shards: 3
  263. index-prefix: lili
  264. schema: http
  265. # account:
  266. # username: elastic
  267. # password: LiLiShopES
  268. logstash:
  269. server: 127.0.0.1:4560
  270. rocketmq:
  271. promotion-topic: lili_promotion_topic
  272. promotion-group: lili_promotion_group
  273. msg-ext-topic: lili_msg_topic
  274. msg-ext-group: lili_msg_group
  275. goods-topic: lili_goods_topic
  276. goods-group: lili_goods_group
  277. order-topic: lili_order_topic
  278. order-group: lili_order_group
  279. member-topic: lili_member_topic
  280. member-group: lili_member_group
  281. other-topic: lili_other_topic
  282. other-group: lili_other_group
  283. notice-topic: lili_notice_topic
  284. notice-group: lili_notice_group
  285. notice-send-topic: lili_send_notice_topic
  286. notice-send-group: lili_send_notice_group
  287. after-sale-topic: lili_after_sale_topic
  288. after-sale-group: lili_after_sale_group
  289. rocketmq:
  290. name-server: 127.0.0.1:9876
  291. isVIPChannel: false
  292. producer:
  293. group: lili_group
  294. send-message-timeout: 30000
  295. xxl:
  296. job:
  297. admin:
  298. addresses: http://127.0.0.1:9001/xxl-job-admin
  299. executor:
  300. appname: xxl-job-executor-lilishop
  301. address:
  302. ip:
  303. port: 8891
  304. logpath: ./xxl-job/executor
  305. logretentiondays: 7