常见问题
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: '*'