1. Error prompt
java.lang.NoSuchMethodError: javax.servlet.http.HttpServletRequest.getHttpServletMapping()Ljavax/servlet/http/HttpServletMapping;
2. The reason is that the Tomcat version is incompatible with springboot
I use
<parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>2.3.10.RELEASE</version> </parent>
2. The solution is to modify the below codes in pom.xml
<parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>2.3.10.RELEASE</version> </parent>
to:
<parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>2.0.5.RELEASE</version> </parent>
Problem-solving
Read More:
- Caused by: java.lang.IllegalStateException (How to Fix)
- [Solved] spring boot integrated PageHelper Error
- [Solved] BeanCreationException: Error creating bean with name ‘configurationPropertiesBeans‘
- Springcloud builds a gateway and starts Error [Solved]
- spring cloud 2020 gateway Error 503 [How to Solve]
- [Solved] Classnotfoundexception: org.springframework.core.nativedetector error
- How to Solve Spring integrate Seata startup error
- [Solved] Spring Cloud Use Ribbon Error: No instances available for XXX
- [Solved] ‘build.plugins.plugin.version‘ for org.springframework.boot:spring-boot-maven-plugin is missing.
- Error resolving template [index], template might not exist
- [Solved] Mybatis add dependencies Error: org.apache.ibatis.builder.BuilderException: Error parsing SQL Mapper Configuration.
- Springboot uses Oracle database to report property ‘sqlsessionfactory’ or ‘sqlsessiontemplate’ are required
- [Solved] Failed to start bean ‘eurekaAutoServiceRegistration‘; nested exception is java.lang.NullPointerExce
- [Siolved] org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘webMvcObject
- [Solved] springboot Error: Error creating bean with name ‘configurationPropertiesBeans‘ defined in class path
- Eureka Error: registration status: 204 deregister status: 200
- How to Solve Swagger error: IllegalStateException
- [Solved] Failed to execute goal org.apache.maven.plugins:maven-install-plugin:2.4:install (default-cli) on
- How to Solve Springboot YML configurate logging.level error
- [Solved] Openfegn Remote Call Error: java.lang.NullPointerException: null