application.yml 641 B

1234567891011121314151617181920
  1. server:
  2. port: 7002
  3. eureka:
  4. instance:
  5. hostname: eureka-7002.com #定义eureka实例所在的主机名称
  6. client:
  7. register-with-eureka: false #是否要将自己注册进去
  8. fetch-registry: false #是否要被检索
  9. service-url:
  10. defaultZone: http://QingSe:hello@eureka-7001.com:7001/eureka/,http://QingSe:hello@eureka-7003.com:7003/eureka/
  11. server:
  12. eviction-interval-timer-in-ms: 60000 #设置无效服务清理间隔,默认60毫秒
  13. enable-self-preservation: true #关闭保护模式
  14. spring:
  15. security:
  16. user:
  17. name: QingSe
  18. password: hello
  19. roles:
  20. - QingSe