问答详情
源自:2-3 Mybatis接入SpringBoot项目

请教下各位大佬 急救 为什么我访问conroller下面的控制器 返回404而且tomact就报错了

RROR o.a.catalina.core.ContainerBase.[Tomcat].[localhost] -
            Exception Processing ErrorPage[errorCode=0, location=/error]
java.lang.NoSuchMethodError: javax.servlet.http.HttpServletRequest.getHttpServletMapping()Ljavax/servlet/http/HttpServletMapping;
   at org.apache.catalina.core.ApplicationHttpRequest.setRequest(ApplicationHttpRequest.java:690)
   at org.apache.catalina.core.ApplicationHttpRequest.<init>(ApplicationHttpRequest.java:114)
   at org.apache.catalina.core.ApplicationDispatcher.wrapRequest(ApplicationDispatcher.java:917)
   at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:358)
   at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:312)
   at org.apache.catalina.core.StandardHostValve.custom(StandardHostValve.java:394)


提问者:慕粉3842500 2019-03-10 08:39

个回答

  • 幕布斯7587614
    2019-03-24 21:17:17

    RequstMapping那的问题吧