namespace:local
c31a0971-b627-4aa8-8a64-109afab2ab6b
配置信息
name.prefix=li2233
server-addr=192.168.3.22
server.port=8093
spring.application.name=trendsi-rbac
spring.aop.proxy-target-class=true
spring.aop.auto=true
######################### datasource config 单节点 ###############################################
spring.datasource.url=jdbc:mysql://localhost:3306/trendsi_admin?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true
#spring.datasource.url=jdbc:postgresql://localhost:5432/company-demo?stringtype=unspecified
spring.datasource.type=com.zaxxer.hikari.HikariDataSource
spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
#spring.datasource.driver-class-name=org.postgresql.Driver
spring.datasource.username=root
#### 1q2w3e4r@
spring.datasource.password=1q2w3e4r@
spring.datasource.hikari.maximum-pool-size=10
spring.datasource.hikari.minimum-idle=3
spring.datasource.hikari.idle-timeout=600000
spring.datasource.hikari.connection-timeout=30000
spring.datasource.hikari.max-lifetime=28740000
spring.datasource.hikari.connection-test-query=SELECT 1
spring.datasource.hikari.allow-pool-suspension=false
spring.datasource.hikari.auto-commit=true
spring.datasource.hikari.connection-init-sql=SET NAMES utf8mb4
########################### dynamic datasource ############################################
#spring.datasource.dynamic.hikari.max-pool-size=10
#spring.datasource.dynamic.hikari.min-idle=5
#spring.datasource.dynamic.hikari.idle-timeout=600000
#spring.datasource.dynamic.hikari.connection-timeout=30000
#spring.datasource.dynamic.hikari.max-lifetime=28740000
#spring.datasource.dynamic.hikari.connection-test-query=SELECT 1
#spring.datasource.dynamic.hikari.is-allow-pool-suspension=false
#spring.datasource.dynamic.hikari.is-auto-commit=true
#spring.datasource.dynamic.hikari.connection-init-sql=SET NAMES utf8mb4
#spring.datasource.dynamic.hikari.is-read-only=true
#spring.datasource.dynamic.primary=master
#spring.datasource.dynamic.strict=true
#master
#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
#spring.datasource.dynamic.datasource.master.driver-class-name=com.mysql.cj.jdbc.Driver
#spring.datasource.dynamic.datasource.master.username=root
#spring.datasource.dynamic.datasource.master.password=1q2w3e4r@
#spring.datasource.dynamic.datasource.master.hikari.is-read-only=false
#slave1
#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
#spring.datasource.dynamic.datasource.slave1.driver-class-name=com.mysql.cj.jdbc.Driver
#spring.datasource.dynamic.datasource.slave1.username=root
#spring.datasource.dynamic.datasource.slave1.password=1q2w3e4r@
#spring.datasource.dynamic.datasource.slave1.hikari.is-read-only=true
#slave2
#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
#spring.datasource.dynamic.datasource.slave2.driver-class-name=com.mysql.cj.jdbc.Driver
#spring.datasource.dynamic.datasource.slave2.username=root
#spring.datasource.dynamic.datasource.slave2.password=1q2w3e4r@
#spring.datasource.dynamic.datasource.slave2.hikari.is-read-only=true
########################### jackson config #############################################
#spring.jackson.date-format=
spring.jackson.time-zone=GMT+8
########################### redis config #############################################
spring.redis.host=${server-addr}
spring.redis.port=6379
spring.redis.database=0
spring.redis.jedis.pool.max-active=800
spring.redis.jedis.pool.max-idle=800
spring.redis.jedis.pool.max-wait=1000
spring.redis.jedis.pool.min-idle=0
spring.redis.distributed.lock.enable=true
spring.redis.distributed.lock.client=redisson
########################### 负载均衡 ##############################################
spring.cloud.loadbalancer.retry.enabled=true
spring.cloud.sentinel.enabled=true
spring.cloud.sentinel.transport.dashboard=${server-addr}:8858
spring.cloud.sentinel.transport.port=8719
#应用与Sentinel控制台的心跳间隔时间
spring.cloud.sentinel.transport.heartbeat-interval-ms=1000
#Sentinel自动化配置是否生效
spring.cloud.sentinel.filter.enabled=true
spring.cloud.sentinel.metric.charset=UTF-8
#取消Sentinel控制台懒加载
spring.cloud.sentinel.eager=true
#Sentinel 日志文件所在的目录
spring.cloud.sentinel.log.dir=./logs/${spring.application.name}/sentinel
spring.cloud.sentinel.xy.enable=true
spring.cloud.sentinel.xy.mvc-interceptor-enable=true
spring.cloud.sentinel.xy.total-interceptor-enable=false
####################### mybatis plus config #################################################
mybatis-plus.db-type=mysql
mybatis-plus.max-limit=100
mybatis-plus.mapper-locations=classpath*:/mybatis/*.xml
#mybatis-plus.type-aliases-package=com.company.demo.entities
mybatis-plus.global-config.db-config.id-type=auto
mybatis-plus.global-config.db-config.logic-delete-field=deleted
mybatis-plus.global-config.db-config.logic-delete-value=1
mybatis-plus.global-config.db-config.logic-not-delete-value=0
#mybatis-plus.global-config.db-config.column-format=
#mybatis-plus.global-config.db-config.table-prefix=
mybatis-plus.global-config.db-config.table-underline=true
mybatis-plus.configuration.map-underscore-to-camel-case=true
mybatis-plus.configuration.call-setters-on-nulls=true
mybatis-plus.type-enums-package=com.trendsi.rbac.ienum
##配置这个参数,控制台就会打印sql
mybatis-plus.configuration.log-impl=org.apache.ibatis.logging.stdout.StdOutImpl
########################## application monitor config ##############################################
info.app.name=${spring.application.name}
info.site.name=www.company.com
info.build.groupId=@project.groupId@
info.build.artifactId=@project.artifactId@
info.build.version=@project.version@
info.build.finalName$=@project.build.finalName@
############################ logback config ############################################
logging.config=classpath:logback-spring.xml
logging.file.path=./logs/${spring.application.name}
#默认日志级别
logging.level.root=info
#如需要打印,修改成自己实际需要的服务
logging.level.com.iu.user.facade.UserFeignClient=debug
#############################feign config ###########################################
#feign配置 https://blog.csdn.net/babylovewei/article/details/105981418
feign.sentinel.enabled=true
feign.httpclient.enabled=true
#连接超时时间
feign.httpclient.connection-timeout=2000
feign.httpclient.connection-timer-repeat=3000
feign.httpclient.disable-ssl-validation=false
feign.httpclient.follow-redirects=true
feign.httpclient.max-connections=200
feign.httpclient.max-connections-per-route=50
feign.httpclient.time-to-live=900
feign.httpclient.time-to-live-unit=seconds
feign.okhttp.enabled=true
########################################################################
ribbon.okhttp.enabled=true
ribbon.eager-load.enabled=true
ribbon.http.client.enabled=false
ribbon.restclient.enabled=false
#ribbon.secure-ports=
#ribbon.eager-load.clients=
##############################---配置监控信息---##########################################
#spring.jmx.enabled=true
#spring.jmx.unique-names=true
#spring.jmx.default-domain=
management.metrics.tags.application=${spring.application.name}
management.auditevents.enabled=true
management.endpoint.auditevents.enabled=true
management.endpoint.auditevents.cache.time-to-live=5
management.endpoints.web.exposure.include=*
management.endpoint.health.enabled=true
management.endpoint.health.show-details=always
management.endpoint.beans.enabled=true
management.endpoint.beans.cache.time-to-live=0ms
management.endpoint.shutdown.enabled=true
######## 属性尝试 ##########
management.endpoint.httptrace.enabled=true
management.endpoint.env.post.enabled=false
#################
###springbootAdmin 开启日志打印
management.endpoint.logfile.enabled=true
management.endpoint.logfile.external-file=./logs/company-demo/company-demo.log
management.endpoint.logfile.cache.time-to-live=0ms
########################## tomcat config ##############################################
server.tomcat.max-connections=1000
server.tomcat.accept-count=1000
server.tomcat.accesslog.enabled=false
server.tomcat.accesslog.prefix=access_log
server.tomcat.basedir=./logs/${spring.application.name}
server.tomcat.mbeanregistry.enabled=true
server.tomcat.threads.max=200
server.tomcat.threads.min-spare=10
###################### 请求接口权限拦截配置 ##################################################
#是否开启跨域,本地使用可以开启,走网关无需开启
xy.core.api.cors.enable=true
xy.core.http.message.converter.enable=true
xy.core.annotation.check.login.config.enable=true
xy.core.url.interceptor.config.enable=false
xy.core.url.interceptor.config.client-id=${spring.application.name}
xy.core.url.interceptor.config.required-no-permission-url=/testa
xy.core.url.interceptor.config.required-permission-url=/*
################### 连接池配置 #####################################
xy.core.thread.pool.config.core-size=2
xy.core.thread.pool.config.max-size=20
xy.core.thread.pool.config.queue-capacity=200
xy.core.thread.pool.config.thread-name-prefix=demo
xy.core.thread.pool.config.thread-priority=5
xy.core.thread.pool.config.allow-core-thread-time-out=true
xy.core.thread.pool.config.keep-alive-seconds=3000
xy.core.thread.pool.config.thread-group-name=group1
xy.core.thread.pool.config.thread-pool-name=async-pool
xy.core.thread.pool.config.handler-enum=DISCARD_POLICY
######################### 消息推送群通知 #################################################
xy.core.push.enable=true
xy.core.push.channel=lark
xy.core.push.alarm-url=https://open.larksuite.com/open-apis/bot/v2/hook/d4b9d36b-288b-4d2e-8a06-bd368d7673d7
xy.core.push.logic-url=https://open.larksuite.com/open-apis/bot/v2/hook/d4b9d36b-288b-4d2e-8a06-bd368d7673d7
######################### 缓存配置 ##############################################
xy.core.cache.enable=true
######################### dubbo config ###############################################
dubbo.application.name=${spring.application.name}
dubbo.application.qos-enable=true
###--------registry config------------
#zookeeper://localhost:2181
#nacos://localhost:8848
dubbo.registry.address=zookeeper://${server-addr}:2181
dubbo.registry.check=true
#否是关闭注册
dubbo.registry.register=true
###--------protocol config------------
dubbo.protocol.name=dubbo
dubbo.protocol.port=20880
dubbo.protocol.dispatcher=all
dubbo.protocol.threadpool=fixed
dubbo.protocol.threads=100
###--------provider config------------
dubbo.provider.delay=2000
dubbo.provider.executes=10
dubbo.provider.actives=10
dubbo.provider.timeout=3000
dubbo.provider.retries=2
dubbo.provider.loadbalance=random
dubbo.application.shutwait=15000
#dubbo.service.com.company.demo.DemoServiceApi.timeout=5000
###--------config-center config------------
#dubbo.config-center.address=zookeeper://${local.ip}:2181
#dubbo.config-center.protocol=nacos
###--------consumer config------------
dubbo.consumer.timeout=3000
dubbo.consumer.check=true
dubbo.consumer.actives=10
dubbo.consumer.reconnect=true
dubbo.consumer.sent=true
dubbo.consumer.corethreads=10
dubbo.consumer.threadpool=fixed
dubbo.consumer.threads=10
dubbo.consumer.lazy=false
#dubbo.reference.org.apache.dubbo.samples.api.DemoService.timeout=6000
#dubbo.reference.org.apache.dubbo.samples.api.DemoService.sayHello.timeout=7000
############################# rocket mq config###########################################
rocketmq.enable=true
rocketmq.name-server=${server-addr}:9876
rocketmq.access-channel=LOCAL
rocketmq.producer.group=company-demo-producer
#rocketmq.producer.access-key=
#rocketmq.producer.secret-key=
#rocketmq.producer.enable-msg-trace=true
#rocketmq.producer.customized-trace-topic=
#rocketmq.producer.max-message-size=4194394
rocketmq.producer.compress-message-body-threshold=4096
rocketmq.producer.retry-next-server=false
rocketmq.producer.retry-times-when-send-failed=2
rocketmq.producer.retry-times-when-send-async-failed=2
rocketmq.producer.send-message-timeout=3000
#是否开启mq消息监听,如果开启,则正常消费消息,如果关系,服务当前节点则不在消费任何消息
rocketmq.consumer.enable=false
#rocketmq.consumer.group=${spring.application.name}-consumer
########################### elastic job config#############################################
#是否关闭定时任务
elastic-job.enable=false
elastic-job.reg-center.server-lists=${server-addr}:2181
elastic-job.reg-center.namespace=${spring.application.name}-job
elastic-job.data-source-enable=true
elastic-job.driver-class-name=com.mysql.cj.jdbc.Driver
elastic-job.data-base-url=jdbc:mysql://${server-addr}:3306/elastic_job?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=Asia/Shanghai
elastic-job.username=root
elastic-job.password=1q2w3e4r@
elastic-job.max-pool-size=10
elastic-job.min-idle=5
elastic-job.jobs.testJob.elastic-job-class=com.company.demo.job.SampleJob
elastic-job.jobs.testJob.cron=0/5 * * * * ?
elastic-job.jobs.testJob.sharding-total-count=1
elastic-job.jobs.testJob.sharding-item-parameters=0=Beijing,1=Shanghai,2=Guangzhou
elastic-job.jobs.testJob.failover=true
elastic-job.jobs.testJob.overwrite=true
############################### spring task config ########################################
spring.task.execution.pool.core-size=8
spring.task.execution.pool.keep-alive=60s
spring.task.execution.pool.max-size=20
spring.task.execution.pool.queue-capacity=50
spring.task.execution.thread-name-prefix=task-
spring.task.execution.pool.allow-core-thread-timeout=true
spring.task.execution.shutdown.await-termination=true
spring.task.execution.shutdown.await-termination-period=10s
####################### 定时任务 线程池 ######################################################
spring.task.scheduling.pool.size=2
spring.task.scheduling.thread-name-prefix=scheduling-task-
spring.task.scheduling.shutdown.await-termination=true
spring.task.scheduling.shutdown.await-termination-period=10s
####################### arthas config ##########################
arthas.agent-id=${spring.application.name}
## 使用tunnel-server所在服务器ip
arthas.tunnel-server=ws://172.172.0.8:7777/ws
##配置在要测试应用中
spring.messages.encoding=UTF-8
spring.messages.basename=i18n/messages
spring.messages.fallback-to-system-locale=true
#######################分布式id##################################
com.xy.id.generator.zk.enable=true
com.xy.id.generator.zk.connect-string=${server-addr}:2181
com.xy.id.generator.cloud-service=ali
com.xy.id.generator.zk.username=