【Nacos】nacos启动报错client error: invalid param. null

快要凌晨一点了,终于解决了这个憨憨问题
特此记录!!


***************************
APPLICATION FAILED TO START
***************************

Description:

client error: invalid param. null

Action:

please check your client configuration

Disconnected from the target VM, address: 'javadebug', transport: 'shared memory'

Process finished with exit code 1

报错原因:
因为我使用的是config

        <dependency>
            <groupId>com.alibaba.boot</groupId>
            <artifactId>nacos-config-spring-boot-starter</artifactId>
            <version>0.2.1</version>
        </dependency>

但是我在yml里面的配置为:

nacos:
  discovery:
    server-addr: xxxxxxxxxx

所以报错
修改discovery为config即可!

nacos:
    config:
    server-addr: xxxxxx

切记粗心写错配置文件!!

猜你喜欢

转载自blog.csdn.net/Pzzzz_wwy/article/details/110608466