IDEA 2018创建ssm工程 运行时出现500错误

IDEA 2018

JDK 1.8

Maven3.5.4

Tomcat 9.0.10

登陆首页没问题,输入其他地址跳转时出现下面的错误

 

HTTP Status 500 – Internal Server Error

Type Exception Report

Message Handler processing failed; nested exception is java.lang.NoSuchMethodError: javax.servlet.http.HttpServletRequest.getHttpServletMapping()Ljavax/servlet/http/HttpServletMapping;

Description The server encountered an unexpected condition that prevented it from fulfilling the request.

详情如下图:

出现上面的问题可能是jar包不兼容导致的,解决办法:

将Tomcat换成8.5版本,运行正常!

 

posted @ 2018-08-12 08:22  marost  阅读(1884)  评论(0编辑  收藏  举报