
使用的版本
org.springframework.cloud spring-cloud-dependencies2020.0.1 pom import com.alibaba.cloud spring-cloud-alibaba-dependencies2021.1 pom import org.springframework.boot spring-boot-starter-parent2.4.2
异常如下
2022-01-01 16:33:46.172 ERROR 19676 --- [ main] c.a.cloud.nacos.discovery.NacosWatch : namingService subscribe failed, properties:NacosDiscoveryProperties{serverAddr='localhost:8848', endpoint='', namespace='', watchDelay=30000, logName='', service='', weight=1.0, clusterName='DEFAULT', group='DEFAULT_GROUP', namingLoadCacheAtStart='false', metadata={preserved.register.source=SPRING_CLOUD}, registerEnabled=true, ip='10.188.80.6', networkInterface='', port=-1, secure=false, accessKey='', secretKey='', heartBeatInterval=null, heartBeatTimeout=null, ipDeleteTimeout=null}
java.lang.IllegalArgumentException: Param 'serviceName' is illegal, serviceName is blank
配置文件 bootstrap 已经设置了 application.name,还是读取不到
解决方式
org.springframework.cloud
spring-cloud-starter-bootstrap
欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)