较为隐秘的配置

DBC 833 0
server:
  port: 9800

spring:
  application:
    name: android-cloud
  zipkin:
   base-url: http://81.71.147.62:9411 #zipkin地址
   discovery-client-enabled: false  #不用开启服务发现
  sleuth:
    sampler:
      probability: 1.0 #采样百分比
  cloud:
    sentinel:
      transport:
        dashboard: 81.71.147.62:8858
        
  
      
    nacos:
      discovery:
        server-addr: 81.71.147.62:8848
  
  datasource:
    driver-class-name: com.mysql.cj.jdbc.Driver
    url: jdbc:mysql://81.71.147.62:3306/android?useUnicode=true&characterEncoding=utf-8&useSSL=false&   serverTimezone=GMT%2B8&characterEncoding=UTF-8
    username: root
    password: Mll6551012


mybatis:
  mapper-locations: classpath:mybatis/com/mapping/*.xml
  type-aliases-package: com.example.demo.model

#使用随机负载均衡策略
android-cloud:
  ribbon:
    NFLoadBalancerRuleClassName: com.netflix.loadbalancer.RandomRule
#开启Feign对Sentinel的支持
feign:
  sentinel:
    enabled: true

发表评论 取消回复
表情 图片 链接 代码

分享