application.yml 8.7 KB

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