application.yml 8.7 KB

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