gradle构建的spring boot多module项目启动时报错???

zhang506281581 2017-12-07 03:05:47
使用gradle构建的spring boot 项目启动时发生报错如下:哪位大神有遇到过此类错误,也给传授一下解决经验......
Connected to the target VM, address: '127.0.0.1:49441', transport: 'socket'
Disconnected from the target VM, address: '127.0.0.1:49441', transport: 'socket'
java.lang.NoClassDefFoundError: javax/servlet/Servlet
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Class.java:2701)
at java.lang.Class.privateGetMethodRecursive(Class.java:3048)
at java.lang.Class.getMethod0(Class.java:3018)
at java.lang.Class.getMethod(Class.java:1784)
at sun.launcher.LauncherHelper.validateMainClass(LauncherHelper.java:544)
at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:526)
Caused by: java.lang.ClassNotFoundException: javax.servlet.Servlet
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)
... 7 more
Error: A JNI error has occurred, please check your installation and try again
Exception in thread "main"
Process finished with exit code 1
...全文
261 回复 点赞 打赏 收藏 举报
写回复
回复
切换为时间正序
当前发帖距今超过3年,不再开放新的回复
发表回复
相关推荐
发帖
Web开发应用服务器
加入

5610

社区成员

Web开发应用服务器相关讨论专区
申请成为版主
帖子事件
创建了帖子
2017-12-07 03:05
社区公告
暂无公告