两个测试,所有测试的方法都报同一个错
Caused by: java.lang.NoClassDefFoundError: org/springframework/core/KotlinDetector at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:115) at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:143) at org.springframework.test.context.BootstrapUtils.createCacheAwareContextLoaderDelegate(BootstrapUtils.java:98) ... 19 more Caused by: java.lang.ClassNotFoundException: org.springframework.core.KotlinDetector at java.net.URLClassLoader.findClass(URLClassLoader.java:381) at java.lang.ClassLoader.loadClass(ClassLoader.java:424) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:335) at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ... 22 more Disconnected from the target VM, address: '127.0.0.1:60952', transport: 'socket' Process finished with exit code 255
貌似NoClassDefFoundError和ClassNotFoundException是跟版本和配置有关的。
Disconnected from the target VM, address: '127.0.0.1:60952', transport: 'socket'
这个说是端口被占用,但是我重启重新运行还是不行,网上查过方法无果,求大神同学和老师指教!感激不尽!