application.yml 8.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279
  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. #amqp
  29. # rabbitmq:
  30. # host: 127.0.0.1
  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/new-lili?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. - /buyer/mini-program/**
  118. - /buyer/cashier/**
  119. - /buyer/pageData/**
  120. - /buyer/article/**
  121. - /buyer/goods/**
  122. - /buyer/category/**
  123. - /buyer/store/**
  124. - /buyer/connect/**
  125. - /buyer/members/**
  126. - /buyer/promotion/pintuan/**
  127. - /buyer/promotion/seckill/**
  128. - /buyer/promotion/pointsGoods/**
  129. - /buyer/memberEvaluation/**/goodsEvaluation
  130. - /buyer/memberEvaluation/**/evaluationNumber
  131. - /store/login/**
  132. - /manager/user/login
  133. - /manager/user/refresh/**
  134. - /druid/**
  135. - /swagger-ui.html
  136. - /doc.html
  137. - /swagger-resources/**
  138. - /swagger/**
  139. - /webjars/**
  140. - /v2/api-docs
  141. - /configuration/ui
  142. - /boot-admin
  143. - /**/*.js
  144. - /**/*.css
  145. - /**/*.png
  146. - /**/*.ico
  147. # Swagger界面内容配置
  148. swagger:
  149. title: lili API接口文档
  150. description: lili Api Documentation
  151. version: 1.0.0
  152. termsOfServiceUrl: https://pickmall.cn
  153. contact:
  154. name: lili
  155. url: https://pickmall.cn
  156. email: admin@pickmall.com
  157. # Mybatis-plus
  158. mybatis-plus:
  159. mapper-locations: classpath*:mapper/*.xml
  160. configuration:
  161. #缓存开启
  162. cache-enabled: true
  163. #日志
  164. # log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
  165. # 日志
  166. logging:
  167. # 输出级别
  168. level:
  169. cn.lili: info
  170. # org.hibernate: debug
  171. # org.springframework: debug
  172. file:
  173. # 指定路径
  174. path: lili-logs
  175. logback:
  176. rollingpolicy:
  177. # 最大保存天数
  178. max-history: 7
  179. # 每个文件最大大小
  180. max-file-size: 5MB
  181. #加密参数
  182. jasypt:
  183. encryptor:
  184. password: lili
  185. lili:
  186. system:
  187. isDemoSite: true
  188. statistics:
  189. # 在线人数统计 X 小时。这里设置48,即统计过去48小时每小时在线人数
  190. onlineMember: 48
  191. # 当前在线人数刷新时间间隔,单位秒,设置为600,则每10分钟刷新一次
  192. currentOnlineUpdate: 600
  193. #qq lbs 申请
  194. lbs:
  195. key: 4BYBZ-7MT6S-PUAOA-6BNWL-FJUD7-UUFXT
  196. sk: zhNKVrJK6UPOhqIjn8AQvG37b9sz6
  197. #域名
  198. domain:
  199. pc: http://127.0.0.1:8888
  200. wap: http://127.0.0.1:8888
  201. seller: http://127.0.0.1:8888
  202. admin: http://127.0.0.1:8888
  203. #api地址
  204. api:
  205. buyer: https://z171l91606.51mypc.cn
  206. base: http://127.0.0.1:8888
  207. manager: http://127.0.0.1:8888
  208. seller: http://127.0.0.1:8888
  209. # jwt 细节设定
  210. jwt-setting:
  211. # token过期时间(分钟)
  212. tokenExpireTime: 60
  213. # 使用Spring @Cacheable注解失效时间
  214. cache:
  215. # 过期时间 单位秒 永久不过期设为-1
  216. timeout: 1500
  217. #多线程配置
  218. thread:
  219. corePoolSize: 5
  220. maxPoolSize: 50
  221. queueCapacity: 50
  222. data:
  223. elasticsearch:
  224. cluster-name: elasticsearch
  225. cluster-nodes: 127.0.0.1:9200
  226. index:
  227. number-of-replicas: 0
  228. number-of-shards: 3
  229. index-prefix: lili
  230. schema: http
  231. # account:
  232. # username: elastic
  233. # password: LiLiShopES
  234. logstash:
  235. server: 127.0.0.1:4560
  236. rocketmq:
  237. promotion-topic: lili_promotion_topic
  238. promotion-group: lili_promotion_group
  239. msg-ext-topic: lili_msg_topic
  240. msg-ext-group: lili_msg_group
  241. goods-topic: lili_goods_topic
  242. goods-group: lili_goods_group
  243. order-topic: lili_order_topic
  244. order-group: lili_order_group
  245. member-topic: lili_member_topic
  246. member-group: lili_member_group
  247. other-topic: lili_other_topic
  248. other-group: lili_other_group
  249. notice-topic: lili_notice_topic
  250. notice-group: lili_notice_group
  251. notice-send-topic: lili_send_notice_topic
  252. notice-send-group: lili_send_notice_group
  253. rocketmq:
  254. name-server: 127.0.0.1:9876
  255. producer:
  256. group: lili_group
  257. send-message-timeout: 30000
  258. xxl:
  259. job:
  260. admin:
  261. addresses: http://127.0.0.1:9001/xxl-job-admin
  262. executor:
  263. appname: xxl-job-executor-lilishop
  264. address:
  265. ip:
  266. port: 8891
  267. logpath: ./xxl-job/executor
  268. logretentiondays: 7