线程“主”中的异常java.lang.NoClassDefFoundError:SessionFactory

时间:2018-10-24 17:11:37

标签: java spring-boot

  

Blockquote   因此,请给我解决方案以纠正我的错误。这是在执行Spring Boot应用程序期间发生的错误enter code here

Exception in thread "main" java.lang.NoClassDefFoundError: SessionFactory
	at java.lang.Class.getDeclaredMethods0(Native Method)
	at java.lang.Class.privateGetDeclaredMethods(Unknown Source)
	at java.lang.Class.privateGetMethodRecursive(Unknown Source)
	at java.lang.Class.getMethod0(Unknown Source)
	at java.lang.Class.getMethod(Unknown Source)
	at sun.launcher.LauncherHelper.validateMainClass(Unknown Source)
	at sun.launcher.LauncherHelper.checkAndLoadMain(Unknown Source)
Caused by: java.lang.ClassNotFoundException: SessionFactory
	at java.net.URLClassLoader.findClass(Unknown Source)
	at java.lang.ClassLoader.loadClass(Unknown Source)
	at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
	at java.lang.ClassLoader.loadClass(Unknown Source)
	... 7 more

0 个答案:

没有答案