application.yml 9.2 KB

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