java debug错误
记录在java web 学习时遇到的bug
带着耳机去梦游
跌跌撞撞,但也要更坚定,走出迷茫
展开
-
maven Spring项目启动报错
在使用maven构建项目的过程中,有时出现各种各样的启动错误:今天在使用启动nacos服务提供者的时候,报错: Error processing condition on org.springframework.cloud.netflix.ribbon.Ribboon…度了一下只能搜到有关euraka和rabbion的使用报错解决和原因是版本冲突问题的回复, 而且官方文档显示“Nacos Di...原创 2020-03-22 11:40:58 · 840 阅读 · 0 评论 -
Bean named 'xx' is expected to be of type 'xx' but was actually of type 'com.sun.proxy.$Proxy29'
当要诸如一个接口的实现类时:使用接口来进行类对象转换_UserService bean = ac.getBean(“UserServiceImpl”,UserService.class); // UserServiceImpl bean = ac.getBean("UserServiceImpl",UserServiceImpl.class);多个不同的实现,根据添加name属性来查找...原创 2019-11-26 21:26:59 · 1270 阅读 · 0 评论