java.lang.NoSuchMethodError: javax.servlet.http.HttpServletRequest.getHttpServletMapping()Ljavax/ser

根本原因就是  Spring-boot内置的tomcat 和你导入的javax.servlet-api起冲突

解决办法把javax.servlet-api去掉


<!--        <dependency>-->
<!--            <groupId>javax.servlet</groupId>-->
<!--            <artifactId>javax.servlet-api</artifactId>-->
<!--        </dependency>-->

猜你喜欢

转载自blog.csdn.net/qq_35204957/article/details/121581042
今日推荐