Skip to content

bootstrap nacos

liubao edited this page Apr 13, 2023 · 1 revision

Bootstrap 配置: Nacos

推荐配置

spring:
  application:
    # 微服务名称。 微服务名称定义好以后,后续不能变更。
    name: basic-provider
  cloud:
    nacos:
      discovery:
        enabled: true
        server-addr: http://127.0.0.1:8848
        service: ${spring.application.name}
      config:
        enabled: true
        server-addr: http://127.0.0.1:8848
        service: ${spring.application.name}

配置参考

Clone this wiki locally