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

為了賬號(hào)安全,請及時(shí)綁定郵箱和手機(jī)立即綁定

右鍵new web.xml,怎么新建?

我右鍵new 沒有web.xml 這個(gè)選擇,請問怎么新建一個(gè)xml?https://img1.sycdn.imooc.com//5b051f130001f2d505410495.jpg

正在回答

2 回答

右鍵創(chuàng)建不了,我試過~


0 回復(fù) 有任何疑惑可以回復(fù)我~
#1

等一束花開3990875 提問者

非常感謝!
2018-05-24 回復(fù) 有任何疑惑可以回復(fù)我~

https://img1.sycdn.imooc.com//5b061ed2000177ae13540929.jpg

file—>Project Structure?

如圖所示

但是你得自己寫內(nèi)容

<web-app?xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
?????????xmlns="http://java.sun.com/xml/ns/javaee"
?????????xsi:schemaLocation="http://java.sun.com/xml/ns/javaee?http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"
?????????id="WebApp_ID"?version="3.0">

????<context-param>
????????<param-name>contextConfigLocation</param-name>
????????<param-value>classpath*:spring.xml</param-value>
????</context-param>

????<!--spring?監(jiān)聽器-->
????<listener>
????????<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
????</listener>

????<listener>
????????<listener-class>org.springframework.web.context.request.RequestContextListener</listener-class>
????</listener>

????<!--shiro?Filter-->
????<filter>
????????<filter-name>shiroFilter</filter-name>
????????<filter-class>org.springframework.web.filter.DelegatingFilterProxy</filter-class>
????</filter>

????<filter-mapping>
????????<filter-name>shiroFilter</filter-name>
????????<url-pattern>/*</url-pattern>
????</filter-mapping>

????<!--?解析springMvc?-->
????<servlet>
????????<servlet-name>springDispatcherServlet</servlet-name>
????????<servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
????????<init-param>
????????????<param-name>contextConfigLocation</param-name>
????????????<param-value>classpath*:spring-mvc.xml</param-value>
????????</init-param>
????????<load-on-startup>1</load-on-startup>
????</servlet>

????<!--?攔截器?攔截所有?-->
????<servlet-mapping>
????????<servlet-name>springDispatcherServlet</servlet-name>
????????<url-pattern>/</url-pattern>
????</servlet-mapping>

</web-app>


6 回復(fù) 有任何疑惑可以回復(fù)我~

舉報(bào)

0/150
提交
取消

右鍵new web.xml,怎么新建?

我要回答 關(guān)注問題
微信客服

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

幫助反饋 APP下載

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

公眾號(hào)

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