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

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

SSM框架設(shè)置好了springMVC的靜態(tài)頁(yè)面訪問卻打不開jsp頁(yè)面了,忙活大半天無(wú)果求解!!!

SSM框架設(shè)置好了springMVC的靜態(tài)頁(yè)面訪問卻打不開jsp頁(yè)面了,忙活大半天無(wú)果求解!!!

迷失代碼林 2017-07-25 12:58:21
項(xiàng)目沒問題的,業(yè)務(wù)功能都能正常實(shí)現(xiàn),后來(lái)為了添加JS文件,就設(shè)置靜態(tài)資源訪問,但是一旦設(shè)置之后jsp頁(yè)面就訪問不了,配置文件如下:(js文件在webroot目錄下,與WEB-INF平級(jí))<?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:aop="http://www.springframework.org/schema/aop"? xmlns:mvc="http://www.springframework.org/schema/mvc"? xmlns:tx="http://www.springframework.org/schema/tx" xmlns:p="http://www.springframework.org/schema/p" 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/aop? ???????????http://www.springframework.org/schema/aop/spring-aop-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/tx? ???????????http://www.springframework.org/schema/tx/spring-tx-3.0.xsd"> <!--?使spring掃描包下的所有類,讓標(biāo)注spring注解的類生效?--> <context:component-scan?base-package="/"?/> <!--?對(duì)轉(zhuǎn)向頁(yè)面的路徑解析。prefix:前綴,?suffix:后綴?--> <bean class="org.springframework.web.servlet.view.InternalResourceViewResolver"> <property?name="prefix"?value="/WEB-INF/jsp/"?/> <property?name="suffix"?value=".jsp"?/> </bean> <!--?靜態(tài)資源文件訪問,SPRINGMVC中無(wú)法直接訪問靜態(tài)資源?--> ?<mvc:default-servlet-handler?/> <!--?<mvc:resources?mapping?="/js/**,/css/**"?location="/js/,/css/"?/>? ?--> </beans>
查看完整描述

3 回答

?
rookie2maven

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

Web.xml

查看完整回答
反對(duì) 回復(fù) 2017-07-26
  • 3 回答
  • 0 關(guān)注
  • 7377 瀏覽
慕課專欄
更多

添加回答

舉報(bào)

0/150
提交
取消
微信客服

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

幫助反饋 APP下載

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

公眾號(hào)

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