異常


java.lang.IllegalArgumentException: Could not find class
[org.springframework.cloud.client.discovery.composite.reactive.
ReactiveCompositeDiscoveryClientAutoConfiguration]
原因是springcloud與springcloudalibaba的依賴版本沖突 Greem
框架 springcloud springcloudalibaba spring boot
版本 2.2.1.RELEASE Spring Cloud Hoxton.SR3 2.2.5.RELEASE

org.springframework.web.client.HttpClientErrorException$NotFound: 404 :
[{"timestamp":"2022-04-07T09:31:55.872+0000","status":404,"error":"Not Found",
"message":"No message available","path":"/provider/port"}]
原因是provider的方法上未加GetMapping("/port"),提供者又訪問了

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'configController'
: Injection of autowired dependencies failed; nested exception is
java.lang.IllegalArgumentException: Could not resolve placeholder
'config.port' in value "${config.port}"
nacos配置文件沒有config屬性。而controller層中屬性@Value(${config.info})有

org.springframework.beans.factory.UnsatisfiedDependencyException:Error creating bean with name
Unsatisfied dependency expressed through field 'orderService';
nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException:
Error creating bean with name 'orderServiceImpl':
解決了下面的時區問題后這個問題消失了。

The server time zone value '�й���׼ʱ��' is unrecognized or represents more than one time zone.
You must configure either the server or JDBC driver
url地址后添加時區配置 例如:url: jdbc:mysql://localhost:3306/order?serverTimezone=GMT%2B8

io.seata.common.exception.FrameworkException: can not connect to services-server.

java.sql.SQLException: Failed to fetch schema of XXXXX表
數據庫找不到表,只需要在Url里添加useInformationSchema=false
例如:jdbc:mysql://localhost:3306/order?serverTimezone=GMT%2B8&useInformationSchema=false

Exception in thread "main" com.rabbitmq.client.AuthenticationFailureException: ACCESS_REFUSED -
Login was refused using authentication mechanism PLAIN. For details see the broker logfile.
設置的用戶名密碼不對,我是直接用默認的就解決了。


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM