spring:
jackson:
date-format: yyyy-MM-dd HH:mm:ss
time-zone: Asia/Chongqing
redis:
host: localhost
port: 6379
datasource:
druid:
driver-class-name: com.mysql.jdbc.Driver
username: root
password: root
url: jdbc:mysql://127.0.0.1:3306/mysql6?useUnicode=true&characterEncoding=utf8&useSSL=false
max-active: 40
#连接池配置
cloud:
nacos:
discovery: #nacos配置
server-addr: localhost:8848
username: nacos
password: nacos
#ip: 127.0.0.1 #服务注册的ip,可以不写,nacos自动检测到ip
#port: 9002 #服务注册的端口,可以不写,nacos自动检测到port
namespace: sit
group: FMSC
mybatis-plus:
configuration:
aggressive-lazy-loading: true
type-aliases-package: "com.xx"
rocketmq:
name-server: 127.0.0.1:9876
producer:
group: springboot-producer
send-message-timeout: 3000
compress-message-body-threshold: 4096
max-message-size: 4194304
retry-next-server: true
retry-times-when-send-async-failed: 2
retry-times-when-send-failed: 2
spring:
application:
name: demo01
#该微服务的名称
#sentinel流控配置
cloud:
sentinel:
eager: true
transport:
port: 8719
dashboard: 127.0.0.1:8888
#开启流控
feign:
sentinel:
enabled: true
server:
port:9010