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版本,运行正常!

猜你喜欢

转载自www.cnblogs.com/marost/p/9461957.html
今日推荐