com.alibaba.nacos.api.exception.NacosException: failed to req API:/nacos/v1/ns/instance after ...

报错信息:

com.alibaba.nacos.api.exception.NacosException: failed to req API:/nacos/v1/ns/instance after all servers([localhost:8848]) tried: [java.net.ConnectException](http://java.net.connectexception/): Connection refused: connect**

解决方法:

        检查nacos是否启动,或者nacos是否启动成功。

你可能感兴趣的:(Spring项目异常处理,java,spring,mybatis)