我正在使用 IntelliJ 并導(dǎo)入了 Spring MVC 項(xiàng)目。我配置了 Maven 設(shè)置并用于mvn clean install 構(gòu)建我的項(xiàng)目。為了運(yùn)行,我在 IntelliJ 的配置上配置了 tomcat:run。但紅色標(biāo)記顯示為:<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>com.luv2code</groupId> <artifactId>spring-security-demo</artifactId> <version>1.0</version> <packaging>war</packaging> <name>spring-security-demo</name> <properties> <springframework.version>5.0.2.RELEASE</springframework.version> <maven.compiler.source>1.8</maven.compiler.source> <maven.compiler.target>1.8</maven.compiler.target> </properties> <dependencies> <!-- Spring MVC support --> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-webmvc</artifactId> <version>${springframework.version}</version> </dependency> <!-- Servlet, JSP and JSTL support --> <dependency> <groupId>javax.servlet</groupId> <artifactId>javax.servlet-api</artifactId> <version>3.1.0</version> </dependency> <dependency> <groupId>javax.servlet.jsp</groupId> <artifactId>javax.servlet.jsp-api</artifactId> <version>2.3.1</version> </dependency> <dependency> <groupId>javax.servlet</groupId> <artifactId>jstl</artifactId> <version>1.2</version> </dependency> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>3.8.1</version> <scope>test</scope> </dependency> </dependencies>
如何在Intellij中運(yùn)行導(dǎo)入的Spring mvc項(xiàng)目?
炎炎設(shè)計(jì)
2023-05-24 15:10:37