【转】从 Spring 项目中禁用 nacos

转自:https://blog.csdn.net/weixin_44828157/article/details/127723188

在 application.yml 中添加以下配置即可:

spring:
  cloud:
    nacos:
      config:
        enabled: false
        refresh-enabled: false
      discovery:
        enabled: false
        instance-enabled: false

 

posted on 2024-04-23 10:48  z5337  阅读(708)  评论(0)    收藏  举报