常见问题
java.lang.IllegalArgumentException: Param ‘serviceName’ is illegal, serviceName is blank
‘org.springframework.cloud.client.SpringCloudApplication’ is deprecated
java.lang.IllegalStateException: Annotation @EnableCircuitBreaker found, but there are no implementations. Did you forget to include a starter?


使用最新版本:
Spring Cloud Version: 2020.0.2
Spring Boot Version: 2.4.3
Spring Cloud Alibaba Version:2.2.5.RELEASE
原因:版本过高
解决:修改版本:
Spring Cloud Version: Hoxton.SR11
Spring Boot Version: 2.3.10.RELEASE
Spring Cloud Alibaba Version:2.2.5.RELEASE

Caused by: org.yaml.snakeyaml.scanner.ScannerException: while scanning an alias

解决:*改为'*'
management:
endpoints:
web:
exposure:
include: '*'
这篇博客讲述了在使用最新版本Spring Cloud (2020.0.2)、Spring Boot (2.4.3) 和 Spring Cloud Alibaba (2.2.5.RELEASE)时遇到的错误,包括IllegalArgumentException、SpringCloudApplication的弃用警告以及@EnableCircuitBreaker找不到实现的异常。解决方案是回退到SpringCloudVersion Hoxton.SR11、SpringBootVersion 2.3.10.RELEASE,同时修复YAML配置中别名的错误。
1743

被折叠的 条评论
为什么被折叠?



