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

為了賬號安全,請及時綁定郵箱和手機立即綁定

配置都是一行一行敲么?

如mvc-dispatcher-servlet.xml文件配置,有模版么?有的話在哪找?

正在回答

2 回答

老的項目,官方的example...

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

HenryT

希望可以給一下鏈接,謝謝
2015-08-18 回復(fù) 有任何疑惑可以回復(fù)我~

各位觀眾,我來幫你們省時間,mvc-dipatcher-servlet.xml請拿去:

<?xml version="1.0" encoding="UTF-8"?>

<beans xmlns="http://www.springframework.org/schema/beans"

xmlns:context="http://www.springframework.org/schema/context"

xmlns:mvc="http://www.springframework.org/schema/mvc"

xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

xsi:schemaLocation="?

? ? ? ? http://www.springframework.org/schema/beans? ?

? ? ? ? http://www.springframework.org/schema/beans/spring-beans.xsd?

? ? ? ? http://www.springframework.org/schema/context? ?

?? http://www.springframework.org/schema/context/spring-context.xsd?

? ? ? ? http://www.springframework.org/schema/mvc? ?

? ? ? ? http://www.springframework.org/schema/mvc/spring-mvc.xsd">



<!-- 定義掃描Controller包下的內(nèi)容 -->

<context:annotation-config />


<!-- <context:annotation-config/> -->

<!-- 對module包中的所有類進行掃描,以完成Bean創(chuàng)建和自動依賴注入的功能 -->

<context:component-scan

base-package="com.imooc.mvcdemo">

<context:include-filter type="annotation"

expression="org.springframework.stereotype.Controller" />

</context:component-scan>


<!-- @Controller注解的使用前提配置 詳細(xì)解釋見(注. 1. ) -->

<mvc:annotation-driven />





<!-- 啟動Spring MVC的注解功能,完成請求和注解POJO的映射 <bean class="org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter"?

/> -->


<!-- 定義視圖解析器,在視圖模型前后添加前綴后綴 暫時只支持jsp后綴 -->

<bean

class="org.springframework.web.servlet.view.InternalResourceViewResolver">

<property name="viewClass"

value="org.springframework.web.servlet.view.JstlView" />

<property name="prefix" value="/WEB-INF/jsps/" /><!-- 路徑前綴 -->

<property name="suffix" value=".jsp" /><!-- 后綴 -->

</bean>



</beans>


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

舉報

0/150
提交
取消

配置都是一行一行敲么?

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

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

幫助反饋 APP下載

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

公眾號

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