“遇到如java.lang.NoClassDefFoundError: com/alibaba/nacos/client/logging/NacosLogging的报错,”
在学习尚硅谷的SpringCloud 2024版的P92_Nacos之服务提供者9001入驻Nacos中心时添加下述依赖后出现上述报错
<dependency>
<groupId>com.alibaba.cloud</groupId>
<artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>
</dependency>
显然是nacos下的client依赖出现问题
<dependency>
<groupId>com.alibaba.nacos</groupId>
<artifactId>nacos-client</artifactId>
<version>2.2.3</version>
</dependency>
添加nacos-client依赖后即可解决报错