application.yml.bak 8.4 KB

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