application.yml 8.1 KB

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