web.xml配置問題?和404The requested resource is not available.
web.xml跟老師講的一樣,jar包檢查無誤,但是就是發布后,在網頁上無法訪問工程,但是如果注釋掉web。xml的配置后又能正常訪問了,求大神指點?。?/p>
<!-- 配置Spring框架的核心監聽器 -->
? <!-- ?<listener>
? <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
? </listener> -->
??
?<!-- ?<context-param>
? <param-name>contextConfigLoaction</param-name>
? <param-value>classpath:applicationContext.xml</param-value>
? </context-param> ?-->
??
? <!-- 配置Struts2框架的核心過濾器 -->
? ?<!-- <filter>
? ? <filter-name>struts2</filter-name>
? ? <filter-class>org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter</filter-class>
? </filter>
? <filter-mapping>
<filter-name>struts2</filter-name>
<url-pattern>/*</url-pattern>
? </filter-mapping> ?--
2017-01-09
context-param的contextconfiglocation拼錯了
2022-03-24
哦哦,謝謝了,看來我寫對了,嘻嘻被自己蠢哭了onclick()放錯位置了