当前位置:   article > 正文

报错:Java HotSpot(TM) 64-Bit Server VM warning: Sharing is only supported for boot loader classes ...

java hotspot(tm) 64-bit server vm warning: sharing is only supported for boo

我的运行截图如下:

具体报错代码如下:

Java HotSpot(TM) 64-Bit Server VM warning: Sharing is only supported for boot loader classes because bootstrap classpath has been appended
  1. java.lang.NoClassDefFoundError: com/jnxy/mapper/UserMapper (wrong name: com/jnxy/mapper/Usermapper)
  2. at java.base/java.lang.ClassLoader.defineClass1(Native Method)
  3. at java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:1012)
  4. at java.base/java.security.SecureClassLoader.defineClass(SecureClassLoader.java:150)
  5. at java.base/jdk.internal.loader.BuiltinClassLoader.defineClass(BuiltinClassLoader.java:862)
  6. at java.base/jdk.internal.loader.BuiltinClassLoader.findClassOnClassPathOrNull(BuiltinClassLoader.java:760)
  7. at java.base/jdk.internal.loader.BuiltinClassLoader.loadClassOrNull(BuiltinClassLoader.java:681)
  8. at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:639)
  9. at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:188)
  10. at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:520)
  11. at java.base/java.lang.Class.forName0(Native Method)
  12. at java.base/java.lang.Class.forName(Class.java:467)
  13. at org.apache.ibatis.io.ClassLoaderWrapper.classForName(ClassLoaderWrapper.java:186)
  14. at org.apache.ibatis.io.ClassLoaderWrapper.classForName(ClassLoaderWrapper.java:89)
  15. at org.apache.ibatis.io.Resources.classForName(Resources.java:261)
  16. at org.apache.ibatis.builder.xml.XMLConfigBuilder.mapperElement(XMLConfigBuilder.java:381)
  17. at org.apache.ibatis.builder.xml.XMLConfigBuilder.parseConfiguration(XMLConfigBuilder.java:119)
  18. at org.apache.ibatis.builder.xml.XMLConfigBuilder.parse(XMLConfigBuilder.java:98)
  19. at org.apache.ibatis.session.SqlSessionFactoryBuilder.build(SqlSessionFactoryBuilder.java:50)
  20. at org.apache.ibatis.session.SqlSessionFactoryBuilder.build(SqlSessionFactoryBuilder.java:36)
  21. at com.jnxy.util.MybatisUtil.<clinit>(MybatisUtil.java:20)
  22. at com.jnxy.test.UserTest.findUserById(UserTest.java:17)
  23. at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  24. at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
  25. at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  26. at java.base/java.lang.reflect.Method.invoke(Method.java:568)
  27. at org.junit.internal.runners.TestMethod.invoke(TestMethod.java:59)
  28. at org.junit.internal.runners.MethodRoadie.runTestMethod(MethodRoadie.java:98)
  29. at org.junit.internal.runners.MethodRoadie$2.run(MethodRoadie.java:79)
  30. at org.junit.internal.runners.MethodRoadie.runBeforesThenTestThenAfters(MethodRoadie.java:87)
  31. at org.junit.internal.runners.MethodRoadie.runTest(MethodRoadie.java:77)
  32. at org.junit.internal.runners.MethodRoadie.run(MethodRoadie.java:42)
  33. at org.junit.internal.runners.JUnit4ClassRunner.invokeTestMethod(JUnit4ClassRunner.java:88)
  34. at org.junit.internal.runners.JUnit4ClassRunner.runMethods(JUnit4ClassRunner.java:51)
  35. at org.junit.internal.runners.JUnit4ClassRunner$1.run(JUnit4ClassRunner.java:44)
  36. at org.junit.internal.runners.ClassRoadie.runUnprotected(ClassRoadie.java:27)
  37. at org.junit.internal.runners.ClassRoadie.runProtected(ClassRoadie.java:37)
  38. at org.junit.internal.runners.JUnit4ClassRunner.run(JUnit4ClassRunner.java:42)
  39. at org.junit.runner.JUnitCore.run(JUnitCore.java:130)
  40. at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:69)
  41. at com.intellij.rt.junit.IdeaTestRunner$Repeater.startRunnerWithArgs(IdeaTestRunner.java:33)
  42. at com.intellij.rt.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:221)
  43. at com.intellij.rt.junit.JUnitStarter.main(JUnitStarter.java:54)
  44. Disconnected from the target VM, address: '127.0.0.1:59926', transport: 'socket'
  45. Process finished with exit code -1

欢迎大家交流讨论。欢迎点赞、评论和转发。

祝大家:中秋快乐!你的点赞,我都看得见。

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/喵喵爱编程/article/detail/841552
推荐阅读
相关标签
  

闽ICP备14008679号