1.在IDEA和Eclipse中经常出现nested exception或者LinkageError
错误如下:
Caused by: java.lang.LinkageError: loader constraint violation: when resolving overridden method "com.test.testService$$EnhancerBySpringCGLIB$$e84e3266.test(Lcom/TEST/model/Test;)Lcom/TEST/model/Test;" the class loader (instance of org/springframework/boot/devtools/restart/classloader/RestartClassLoader) of the current class, com/test/testService$$EnhancerBySpringCGLIB$$e84e3266, and its superclass loader (instance of sun/misc/Launcher$AppClassLoader), have different Class objects for the type com/TEST/model/Test used in the signature
解决方法:
后续需要对classloader深入理解,反正就是依赖包被不同的加载器加载了class文件
当前的办法:1)在需要启动的工程的工作空间中,把依赖的项目关闭 2)不关闭依赖项目用JRebel也可以启动起来