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

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

xml文件問(wèn)題

導(dǎo)入老師的文件 這里顯示錯(cuò)誤是怎么回事啊 ?



? ? ? ? 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

? ? ? ?

錯(cuò)誤顯示在最后一行


正在回答

1 回答

<?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:context="http://www.springframework.org/schema/context"
	xmlns:mvc="http://www.springframework.org/schema/mvc"
	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?">

	<!--?本配置文件是共名為mvc-dispatcher的DispatcherServlet使用,提供其相關(guān)的Spring?MVC配置?-->

	<!--啟用Spring基于annotation的DI,使用戶可以在Spring?MVC中使用Spring的強(qiáng)大功能?激活@Required?@Autowired,JSR?
		250's?@PostConstruct,@PreDestroy?and?@Resource?等標(biāo)注?-->
	<context:annotation-config?/>

	<!--?DispatcherServlet上下文,只管理@Controller類(lèi)型的bean,忽略其他標(biāo)類(lèi)型的bean,例如@Service?-->
	<context:component-scan?base-package="com.catcher92.mvcdemo">
		<context:include-filter?type="annotation"
			expression="org.springframework.stereotype.Controller"?/>
	</context:component-scan>

	<!--?handlerMapping,無(wú)需配置,SpringMVC可以默認(rèn)啟動(dòng)。?DefaultAnnotationHandlerMapping?
		annotation-driven?HandlerMapping?-->

	<!--?擴(kuò)充了注解驅(qū)動(dòng),可以將請(qǐng)求參數(shù)綁定到控制器參數(shù)?-->
	<mvc:annotation-driven?/>

	<!--?靜態(tài)資源處理,css,js,img?-->
	<mvc:resources?location="/resources/"?mapping="/resources/**"?/>

	<!--?配置ViewResolver。?可以用多個(gè)ViewResolver。?使用order屬性排序。?InternalResourceViewResolver放在最后。?-->
	<bean
		class="org.springframework.web.servlet.view.ContentNegotiatingViewResolver">
		<property?name="order"?value="1"?/>
		<property?name="mediaTypes">
			<map>
				<entry?key="json"?value="application/json"></entry>
				<entry?key="xml"?value="application/xml"></entry>
				<entry?key="htm"?value="application/html"></entry>
			</map>
		</property>

		<property?name="defaultViews">
			<list>
				<!--?JSON?View?-->
				<bean
					class="org.springframework.web.servlet.view.json.MappingJackson2JsonView"></bean>
			</list>
		</property>
		<property?name="ignoreAcceptHeader"?value="true"?/>
	</bean>

	<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>

	<!--?200*1024*1024即200M?resolveLazily屬性啟用是為了推遲文件解析,以便捕獲文件大小異常?-->
	<bean?id="multipartResolver"
		class="org.springframework.web.multipart.commons.CommonsMultipartResolver">
		<property?name="maxUploadSize"?value="209715200"?/>
		<property?name="defaultEncoding"?value="UTF-8"?/>
		<property?name="resolveLazily"?value="true"?/>
	</bean>
</beans>

直接粘貼進(jìn)去,然后改改base-package為你的試試看,如果還有問(wèn)題用瀏覽器打開(kāi)http://www.springframework.org/schema/mvc/spring-mvc.xsd看能否打開(kāi)。

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

舉報(bào)

0/150
提交
取消

xml文件問(wèn)題

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

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

幫助反饋 APP下載

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

公眾號(hào)

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