异常
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.
设置的用户名密码不对,我是直接用默认的就解决了。
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 全程不用写代码,我用AI程序员写了一个飞机大战
· DeepSeek 开源周回顾「GitHub 热点速览」
· 记一次.NET内存居高不下排查解决与启示
· MongoDB 8.0这个新功能碉堡了,比商业数据库还牛
· .NET10 - 预览版1新功能体验(一)