Add the following code in pom.xml:
<!-- https://mvnrepository.com/artifact/javax.servlet/javax.servlet-api -->
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>javax.servlet-api</artifactId>
<version>4.0.1</version>
<scope>provided</scope>
</dependency>
<!-- https://mvnrepository.com/artifact/jstl/jstl -->
<dependency>
<groupId>jstl</groupId>
<artifactId>jstl</artifactId>
<version>1.2</version>
</dependency>
Read More:
- About the steps to create Maven’s (WEB) dependency using in idea
- When SSM + Maven project is running, it is prompted that org.springframework.web.servlet.dispatcherserservlet cannot be found
- Unable to access javax.servlet.servletexception [How to Solve]
- Maven project running servlet jump JSP error: HTTP status 500 – unable to compile class for JSP
- [Solved] SpringMVC Run Error: SEVERE-Servlet.service() for servlet jsp threw exception
- Eclipse create servlet file error
- Spring boot project running error: Servlet.service () for servlet [dispatcherServlet] threw exception
- Error in Maven packaging web project: webxml attribute is required (or pre existing WEB-INF)/ web.xml if executing in update)
- Fatal: unable to create ‘project_ path/.git/ index.lock ‘: File exists.
- Failed to execute goal org.apache.tomcat.maven:tomcat7-maven-plugin:2.2:run (default-cli) on project
- The web project removal server reports an error, and the web project in eclipse cannot be automatically deployed to Tomcat
- [unable to read project file xxxxx, XXX failed to load project file, name cannot start with “<" character (hex value 0x3c)] exception handling method
- Import Maven project error, unable to run
- Adding fastjson dependency to Maven project
- java.lang.NoSuchMethodError Quote: javax.servlet.com Yeah. HttpServletRequest.isAsyncStarted ()Z
- Error in the project tag in the POM file of Maven project: failure to transfer
- The import Maven project appears http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException Solutions
- An error was reported when springboot connected to redis Servlet.service () for servlet [dispatcherServlet] in context with path [] threw e
- Import Maven project pom.xml File error
- Maven project pom.xml Solutions to error reporting