亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

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

默默地把配置文件敲了出來···

我默默的把它敲了出來···

<?xml?version="1.0"?encoding="UTF-8"?>??
<beans?xmlns="http://www.springframework.org/schema/beans"??
????xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"?xmlns:p="http://www.springframework.org/schema/p"??
????xmlns:mvc="http://www.springframework.org/schema/mvc"?xmlns:context="http://www.springframework.org/schema/context"??
????xmlns:util="http://www.springframework.org/schema/util"??
????xsi:schemaLocation="
?http://www.springframework.org/schema/beans
??http://www.springframework.org/schema/beans/spring-beans-3.0.xsd??????????????
????http://www.springframework.org/schema/context?
??http://www.springframework.org/schema/context/spring-context-3.0.xsd?????
????http://www.springframework.org/schema/mvc?
??http://www.springframework.org/schema/mvc/spring-mvc-3.0.xsd???????????????????
????http://www.springframework.org/schema/util?
??http://www.springframework.org/schema/util/spring-util-3.0.xsd">??
?<!-- 激活標注 -->
?<context:annotation-config />
???<!--?對module包中的所有類進行掃描,以完成Bean創建和自動依賴注入的功能-->??
???<context:component-scan?base-package="com.maven.mvcdemo">??
?<context:include-filter type="annotation" expression="org.springframework.stereotype.Controller">
???</context:component-scan>
?<mvc:annotation-driven /><!-- 啟用基于annotation的handlerMapping -->
????<!--?定義視圖解析器,在視圖模型前后添加前綴后綴-->??
???<bean?class="org.springframework.web.servlet.view.InternalResourceViewResolver">
????????<property?name="prefix"?value="/WEB-INF/jsps/"?/>
????????<property?name="suffix"?value=".jsp"?/>
???</bean>
</beans>


正在回答

2 回答

哈哈 ?好辛苦?

0 回復 有任何疑惑可以回復我~

mvc-dispatcher-servlet.xml

0 回復 有任何疑惑可以回復我~

舉報

0/150
提交
取消
Spring MVC起步
  • 參與學習       195951    人
  • 解答問題       609    個

Java中Spring MVC框架入門教程,快來看最易用的MVC框架

進入課程

默默地把配置文件敲了出來···

我要回答 關注問題
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號