摘要: 使用了两个类加载器加载了同一个类,区分一个Class对象是否相等要看包名+类名,也要看是否是同一个类加载器 方案一,排查掉spring-boot-devtools模块的maven引入可以解决,这时候所有类都是使用APPClassloader加载。 方案二,可以引入spring-boot-devtoo 阅读全文
posted @ 2018-03-15 11:34 枫树湾河桥 阅读(631) 评论(0) 推荐(0) 编辑
摘要: @Autowired private ICallerRepository callerRepository; ... //用dubbo提供的ServiceBean即可获取bean,因为该类已经实现了ApplicationContextAware ApplicationContext context= ServiceBean.getSpringContext(); callerRepository... 阅读全文
posted @ 2018-03-15 10:50 枫树湾河桥 阅读(2580) 评论(0) 推荐(0) 编辑
Live2D