namespace:local

c31a0971-b627-4aa8-8a64-109afab2ab6b

配置信息

  1. name.prefix=li2233
  2. server-addr=192.168.3.22
  3. server.port=8093
  4. spring.application.name=trendsi-rbac
  5. spring.aop.proxy-target-class=true
  6. spring.aop.auto=true
  7. ######################### datasource config 单节点 ###############################################
  8. spring.datasource.url=jdbc:mysql://localhost:3306/trendsi_admin?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true
  9. #spring.datasource.url=jdbc:postgresql://localhost:5432/company-demo?stringtype=unspecified
  10. spring.datasource.type=com.zaxxer.hikari.HikariDataSource
  11. spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
  12. #spring.datasource.driver-class-name=org.postgresql.Driver
  13. spring.datasource.username=root
  14. #### 1q2w3e4r@
  15. spring.datasource.password=1q2w3e4r@
  16. spring.datasource.hikari.maximum-pool-size=10
  17. spring.datasource.hikari.minimum-idle=3
  18. spring.datasource.hikari.idle-timeout=600000
  19. spring.datasource.hikari.connection-timeout=30000
  20. spring.datasource.hikari.max-lifetime=28740000
  21. spring.datasource.hikari.connection-test-query=SELECT 1
  22. spring.datasource.hikari.allow-pool-suspension=false
  23. spring.datasource.hikari.auto-commit=true
  24. spring.datasource.hikari.connection-init-sql=SET NAMES utf8mb4
  25. ########################### dynamic datasource ############################################
  26. #spring.datasource.dynamic.hikari.max-pool-size=10
  27. #spring.datasource.dynamic.hikari.min-idle=5
  28. #spring.datasource.dynamic.hikari.idle-timeout=600000
  29. #spring.datasource.dynamic.hikari.connection-timeout=30000
  30. #spring.datasource.dynamic.hikari.max-lifetime=28740000
  31. #spring.datasource.dynamic.hikari.connection-test-query=SELECT 1
  32. #spring.datasource.dynamic.hikari.is-allow-pool-suspension=false
  33. #spring.datasource.dynamic.hikari.is-auto-commit=true
  34. #spring.datasource.dynamic.hikari.connection-init-sql=SET NAMES utf8mb4
  35. #spring.datasource.dynamic.hikari.is-read-only=true
  36. #spring.datasource.dynamic.primary=master
  37. #spring.datasource.dynamic.strict=true
  38. #master
  39. #spring.datasource.dynamic.datasource.master.url=jdbc:mysql://${local.ip}:3306/xy_rbac?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true
  40. #spring.datasource.dynamic.datasource.master.driver-class-name=com.mysql.cj.jdbc.Driver
  41. #spring.datasource.dynamic.datasource.master.username=root
  42. #spring.datasource.dynamic.datasource.master.password=1q2w3e4r@
  43. #spring.datasource.dynamic.datasource.master.hikari.is-read-only=false
  44. #slave1
  45. #spring.datasource.dynamic.datasource.slave1.url=jdbc:mysql://${local.ip}:3306/xy_rbac?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true
  46. #spring.datasource.dynamic.datasource.slave1.driver-class-name=com.mysql.cj.jdbc.Driver
  47. #spring.datasource.dynamic.datasource.slave1.username=root
  48. #spring.datasource.dynamic.datasource.slave1.password=1q2w3e4r@
  49. #spring.datasource.dynamic.datasource.slave1.hikari.is-read-only=true
  50. #slave2
  51. #spring.datasource.dynamic.datasource.slave2.url=jdbc:mysql://${local.ip}:3306/xy_rbac?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true
  52. #spring.datasource.dynamic.datasource.slave2.driver-class-name=com.mysql.cj.jdbc.Driver
  53. #spring.datasource.dynamic.datasource.slave2.username=root
  54. #spring.datasource.dynamic.datasource.slave2.password=1q2w3e4r@
  55. #spring.datasource.dynamic.datasource.slave2.hikari.is-read-only=true
  56. ########################### jackson config #############################################
  57. #spring.jackson.date-format=
  58. spring.jackson.time-zone=GMT+8
  59. ########################### redis config #############################################
  60. spring.redis.host=${server-addr}
  61. spring.redis.port=6379
  62. spring.redis.database=0
  63. spring.redis.jedis.pool.max-active=800
  64. spring.redis.jedis.pool.max-idle=800
  65. spring.redis.jedis.pool.max-wait=1000
  66. spring.redis.jedis.pool.min-idle=0
  67. spring.redis.distributed.lock.enable=true
  68. spring.redis.distributed.lock.client=redisson
  69. ########################### 负载均衡 ##############################################
  70. spring.cloud.loadbalancer.retry.enabled=true
  71. spring.cloud.sentinel.enabled=true
  72. spring.cloud.sentinel.transport.dashboard=${server-addr}:8858
  73. spring.cloud.sentinel.transport.port=8719
  74. #应用与Sentinel控制台的心跳间隔时间
  75. spring.cloud.sentinel.transport.heartbeat-interval-ms=1000
  76. #Sentinel自动化配置是否生效
  77. spring.cloud.sentinel.filter.enabled=true
  78. spring.cloud.sentinel.metric.charset=UTF-8
  79. #取消Sentinel控制台懒加载
  80. spring.cloud.sentinel.eager=true
  81. #Sentinel 日志文件所在的目录
  82. spring.cloud.sentinel.log.dir=./logs/${spring.application.name}/sentinel
  83. spring.cloud.sentinel.xy.enable=true
  84. spring.cloud.sentinel.xy.mvc-interceptor-enable=true
  85. spring.cloud.sentinel.xy.total-interceptor-enable=false
  86. ####################### mybatis plus config #################################################
  87. mybatis-plus.db-type=mysql
  88. mybatis-plus.max-limit=100
  89. mybatis-plus.mapper-locations=classpath*:/mybatis/*.xml
  90. #mybatis-plus.type-aliases-package=com.company.demo.entities
  91. mybatis-plus.global-config.db-config.id-type=auto
  92. mybatis-plus.global-config.db-config.logic-delete-field=deleted
  93. mybatis-plus.global-config.db-config.logic-delete-value=1
  94. mybatis-plus.global-config.db-config.logic-not-delete-value=0
  95. #mybatis-plus.global-config.db-config.column-format=
  96. #mybatis-plus.global-config.db-config.table-prefix=
  97. mybatis-plus.global-config.db-config.table-underline=true
  98. mybatis-plus.configuration.map-underscore-to-camel-case=true
  99. mybatis-plus.configuration.call-setters-on-nulls=true
  100. mybatis-plus.type-enums-package=com.trendsi.rbac.ienum
  101. ##配置这个参数,控制台就会打印sql
  102. mybatis-plus.configuration.log-impl=org.apache.ibatis.logging.stdout.StdOutImpl
  103. ########################## application monitor config ##############################################
  104. info.app.name=${spring.application.name}
  105. info.site.name=www.company.com
  106. info.build.groupId=@project.groupId@
  107. info.build.artifactId=@project.artifactId@
  108. info.build.version=@project.version@
  109. info.build.finalName$=@project.build.finalName@
  110. ############################ logback config ############################################
  111. logging.config=classpath:logback-spring.xml
  112. logging.file.path=./logs/${spring.application.name}
  113. #默认日志级别
  114. logging.level.root=info
  115. #如需要打印,修改成自己实际需要的服务
  116. logging.level.com.iu.user.facade.UserFeignClient=debug
  117. #############################feign config ###########################################
  118. #feign配置 https://blog.csdn.net/babylovewei/article/details/105981418
  119. feign.sentinel.enabled=true
  120. feign.httpclient.enabled=true
  121. #连接超时时间
  122. feign.httpclient.connection-timeout=2000
  123. feign.httpclient.connection-timer-repeat=3000
  124. feign.httpclient.disable-ssl-validation=false
  125. feign.httpclient.follow-redirects=true
  126. feign.httpclient.max-connections=200
  127. feign.httpclient.max-connections-per-route=50
  128. feign.httpclient.time-to-live=900
  129. feign.httpclient.time-to-live-unit=seconds
  130. feign.okhttp.enabled=true
  131. ########################################################################
  132. ribbon.okhttp.enabled=true
  133. ribbon.eager-load.enabled=true
  134. ribbon.http.client.enabled=false
  135. ribbon.restclient.enabled=false
  136. #ribbon.secure-ports=
  137. #ribbon.eager-load.clients=
  138. ##############################---配置监控信息---##########################################
  139. #spring.jmx.enabled=true
  140. #spring.jmx.unique-names=true
  141. #spring.jmx.default-domain=
  142. management.metrics.tags.application=${spring.application.name}
  143. management.auditevents.enabled=true
  144. management.endpoint.auditevents.enabled=true
  145. management.endpoint.auditevents.cache.time-to-live=5
  146. management.endpoints.web.exposure.include=*
  147. management.endpoint.health.enabled=true
  148. management.endpoint.health.show-details=always
  149. management.endpoint.beans.enabled=true
  150. management.endpoint.beans.cache.time-to-live=0ms
  151. management.endpoint.shutdown.enabled=true
  152. ######## 属性尝试 ##########
  153. management.endpoint.httptrace.enabled=true
  154. management.endpoint.env.post.enabled=false
  155. #################
  156. ###springbootAdmin 开启日志打印
  157. management.endpoint.logfile.enabled=true
  158. management.endpoint.logfile.external-file=./logs/company-demo/company-demo.log
  159. management.endpoint.logfile.cache.time-to-live=0ms
  160. ########################## tomcat config ##############################################
  161. server.tomcat.max-connections=1000
  162. server.tomcat.accept-count=1000
  163. server.tomcat.accesslog.enabled=false
  164. server.tomcat.accesslog.prefix=access_log
  165. server.tomcat.basedir=./logs/${spring.application.name}
  166. server.tomcat.mbeanregistry.enabled=true
  167. server.tomcat.threads.max=200
  168. server.tomcat.threads.min-spare=10
  169. ###################### 请求接口权限拦截配置 ##################################################
  170. #是否开启跨域,本地使用可以开启,走网关无需开启
  171. xy.core.api.cors.enable=true
  172. xy.core.http.message.converter.enable=true
  173. xy.core.annotation.check.login.config.enable=true
  174. xy.core.url.interceptor.config.enable=false
  175. xy.core.url.interceptor.config.client-id=${spring.application.name}
  176. xy.core.url.interceptor.config.required-no-permission-url=/testa
  177. xy.core.url.interceptor.config.required-permission-url=/*
  178. ################### 连接池配置 #####################################
  179. xy.core.thread.pool.config.core-size=2
  180. xy.core.thread.pool.config.max-size=20
  181. xy.core.thread.pool.config.queue-capacity=200
  182. xy.core.thread.pool.config.thread-name-prefix=demo
  183. xy.core.thread.pool.config.thread-priority=5
  184. xy.core.thread.pool.config.allow-core-thread-time-out=true
  185. xy.core.thread.pool.config.keep-alive-seconds=3000
  186. xy.core.thread.pool.config.thread-group-name=group1
  187. xy.core.thread.pool.config.thread-pool-name=async-pool
  188. xy.core.thread.pool.config.handler-enum=DISCARD_POLICY
  189. ######################### 消息推送群通知 #################################################
  190. xy.core.push.enable=true
  191. xy.core.push.channel=lark
  192. xy.core.push.alarm-url=https://open.larksuite.com/open-apis/bot/v2/hook/d4b9d36b-288b-4d2e-8a06-bd368d7673d7
  193. xy.core.push.logic-url=https://open.larksuite.com/open-apis/bot/v2/hook/d4b9d36b-288b-4d2e-8a06-bd368d7673d7
  194. ######################### 缓存配置 ##############################################
  195. xy.core.cache.enable=true
  196. ######################### dubbo config ###############################################
  197. dubbo.application.name=${spring.application.name}
  198. dubbo.application.qos-enable=true
  199. ###--------registry config------------
  200. #zookeeper://localhost:2181
  201. #nacos://localhost:8848
  202. dubbo.registry.address=zookeeper://${server-addr}:2181
  203. dubbo.registry.check=true
  204. #否是关闭注册
  205. dubbo.registry.register=true
  206. ###--------protocol config------------
  207. dubbo.protocol.name=dubbo
  208. dubbo.protocol.port=20880
  209. dubbo.protocol.dispatcher=all
  210. dubbo.protocol.threadpool=fixed
  211. dubbo.protocol.threads=100
  212. ###--------provider config------------
  213. dubbo.provider.delay=2000
  214. dubbo.provider.executes=10
  215. dubbo.provider.actives=10
  216. dubbo.provider.timeout=3000
  217. dubbo.provider.retries=2
  218. dubbo.provider.loadbalance=random
  219. dubbo.application.shutwait=15000
  220. #dubbo.service.com.company.demo.DemoServiceApi.timeout=5000
  221. ###--------config-center config------------
  222. #dubbo.config-center.address=zookeeper://${local.ip}:2181
  223. #dubbo.config-center.protocol=nacos
  224. ###--------consumer config------------
  225. dubbo.consumer.timeout=3000
  226. dubbo.consumer.check=true
  227. dubbo.consumer.actives=10
  228. dubbo.consumer.reconnect=true
  229. dubbo.consumer.sent=true
  230. dubbo.consumer.corethreads=10
  231. dubbo.consumer.threadpool=fixed
  232. dubbo.consumer.threads=10
  233. dubbo.consumer.lazy=false
  234. #dubbo.reference.org.apache.dubbo.samples.api.DemoService.timeout=6000
  235. #dubbo.reference.org.apache.dubbo.samples.api.DemoService.sayHello.timeout=7000
  236. ############################# rocket mq config###########################################
  237. rocketmq.enable=true
  238. rocketmq.name-server=${server-addr}:9876
  239. rocketmq.access-channel=LOCAL
  240. rocketmq.producer.group=company-demo-producer
  241. #rocketmq.producer.access-key=
  242. #rocketmq.producer.secret-key=
  243. #rocketmq.producer.enable-msg-trace=true
  244. #rocketmq.producer.customized-trace-topic=
  245. #rocketmq.producer.max-message-size=4194394
  246. rocketmq.producer.compress-message-body-threshold=4096
  247. rocketmq.producer.retry-next-server=false
  248. rocketmq.producer.retry-times-when-send-failed=2
  249. rocketmq.producer.retry-times-when-send-async-failed=2
  250. rocketmq.producer.send-message-timeout=3000
  251. #是否开启mq消息监听,如果开启,则正常消费消息,如果关系,服务当前节点则不在消费任何消息
  252. rocketmq.consumer.enable=false
  253. #rocketmq.consumer.group=${spring.application.name}-consumer
  254. ########################### elastic job config#############################################
  255. #是否关闭定时任务
  256. elastic-job.enable=false
  257. elastic-job.reg-center.server-lists=${server-addr}:2181
  258. elastic-job.reg-center.namespace=${spring.application.name}-job
  259. elastic-job.data-source-enable=true
  260. elastic-job.driver-class-name=com.mysql.cj.jdbc.Driver
  261. elastic-job.data-base-url=jdbc:mysql://${server-addr}:3306/elastic_job?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=Asia/Shanghai
  262. elastic-job.username=root
  263. elastic-job.password=1q2w3e4r@
  264. elastic-job.max-pool-size=10
  265. elastic-job.min-idle=5
  266. elastic-job.jobs.testJob.elastic-job-class=com.company.demo.job.SampleJob
  267. elastic-job.jobs.testJob.cron=0/5 * * * * ?
  268. elastic-job.jobs.testJob.sharding-total-count=1
  269. elastic-job.jobs.testJob.sharding-item-parameters=0=Beijing,1=Shanghai,2=Guangzhou
  270. elastic-job.jobs.testJob.failover=true
  271. elastic-job.jobs.testJob.overwrite=true
  272. ############################### spring task config ########################################
  273. spring.task.execution.pool.core-size=8
  274. spring.task.execution.pool.keep-alive=60s
  275. spring.task.execution.pool.max-size=20
  276. spring.task.execution.pool.queue-capacity=50
  277. spring.task.execution.thread-name-prefix=task-
  278. spring.task.execution.pool.allow-core-thread-timeout=true
  279. spring.task.execution.shutdown.await-termination=true
  280. spring.task.execution.shutdown.await-termination-period=10s
  281. ####################### 定时任务 线程池 ######################################################
  282. spring.task.scheduling.pool.size=2
  283. spring.task.scheduling.thread-name-prefix=scheduling-task-
  284. spring.task.scheduling.shutdown.await-termination=true
  285. spring.task.scheduling.shutdown.await-termination-period=10s
  286. ####################### arthas config ##########################
  287. arthas.agent-id=${spring.application.name}
  288. ## 使用tunnel-server所在服务器ip
  289. arthas.tunnel-server=ws://172.172.0.8:7777/ws
  290. ##配置在要测试应用中
  291. spring.messages.encoding=UTF-8
  292. spring.messages.basename=i18n/messages
  293. spring.messages.fallback-to-system-locale=true
  294. #######################分布式id##################################
  295. com.xy.id.generator.zk.enable=true
  296. com.xy.id.generator.zk.connect-string=${server-addr}:2181
  297. com.xy.id.generator.cloud-service=ali
  298. com.xy.id.generator.zk.username=