steps for creating maven dependencies in idea
- manually import JSP and Servlet and JSTL dependencies in the pom, so that the project has a web compilation environment
-
- JSTL support ‘
- Servlet compilation environment
- JSP compilation environment
0
1
manually imports JSPS and servlets and JSTL dependencies in the pom to give the project a web compilation environment
JSTL supports ` h2>
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>jstl</artifactId>
<version>1.2</version>
</dependency>
servlet compilation environment
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>javax.servlet-api</artifactId>
<version>3.1.0</version>
<scope>provided</scope>
</dependency>
JSP compilation environment
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>jsp-api</artifactId>
<version>2.0</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>jstl</artifactId>
<version>1.2</version>
</dependency>
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>javax.servlet-api</artifactId>
<version>3.1.0</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>jsp-api</artifactId>
<version>2.0</version>
<scope>provided</scope>
</dependency>
div>
Read More:
- maven_ Unable to create servlet file under Java Web project
- Application of IntelliJ idea in Maven project pom.xml Add dependency
- Error in Maven packaging web project: webxml attribute is required (or pre existing WEB-INF)/ web.xml if executing in update)
- Adding fastjson dependency to Maven project
- Solution of maven pom.xml dependency invalidation in IntelliJ
- Error in pom.xml dependency version number in idea
- Solution of plugins error reporting in idea maven
- Dependency frame package of Maven Alibaba JSON
- Idea introduces dependency and starts jar error in opening zip file
- Solve the problem that target code version of Maven project sub module in IntelliJ idea is always rolled back
- Failed to execute goal org.apache.tomcat.maven:tomcat7-maven-plugin:2.2:run (default-cli) on project
- Idea Maven project uses package to package and report error (package does not exist)
- Ubuntu 20.04: How to create shortcut startup mode in IntelliJ idea
- Idea2020.2 encountered pom.xml The problem of file error report in Maven plug-in tomcat7
- When SSM + Maven project is running, it is prompted that org.springframework.web.servlet.dispatcherserservlet cannot be found
- Error in publishing project with Maven in idea. Git directory is not found! Please specify a valid
- Solution in idea java.lang.ClassNotFoundException : org.springframework.web . context.ContextLoaderListener
- How to create JSP project in new version after idea2020
- Failed to execute goal in Maven build org.apache.tomcat .maven:
- Creating Java Web projects with idea