第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號安全,請及時(shí)綁定郵箱和手機(jī)立即綁定
已解決430363個(gè)問題,去搜搜看,總會(huì)有你想問的

如何在Intellij中運(yùn)行導(dǎo)入的Spring mvc項(xiàng)目?

如何在Intellij中運(yùn)行導(dǎo)入的Spring mvc項(xiàng)目?

炎炎設(shè)計(jì) 2023-05-24 15:10:37
我正在使用 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>
查看完整描述

2 回答

?
心有法竹

TA貢獻(xiàn)1866條經(jīng)驗(yàn) 獲得超5個(gè)贊

嘗試這樣做:
File->Project Structure->Modules->檢查是否添加了 Web 模塊
如果“否”:
1. 添加此模塊。然后查看第 2 點(diǎn)。
如果“是”:
檢查那里的Web 資源目錄
2。它必須指向您的webapp目錄路徑。

查看完整回答
反對 回復(fù) 2023-05-24
?
揚(yáng)帆大魚

TA貢獻(xiàn)1799條經(jīng)驗(yàn) 獲得超9個(gè)贊

在你的 DemoController showHome 中應(yīng)該返回一個(gè) ModelAndView 這樣的東西然后 ViewResolver 將它映射到home.jsp


@RequestMapping("/")

public ModelAndView showHome() {

? ? return new ModelAndView("home");

}

查看完整回答
反對 回復(fù) 2023-05-24
  • 2 回答
  • 0 關(guān)注
  • 151 瀏覽

添加回答

舉報(bào)

0/150
提交
取消
微信客服

購課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動(dòng)學(xué)習(xí)伙伴

公眾號

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號