用的是Tomcat的maven插件,在web.xml中配置
<context-param>結果啟動的時候報錯讀不出這個組態檔(spring組態檔我放在Resource標注的檔案中的Spring檔案下),雖然最后是通過上面的classpath改成classpath*解決了。但我不懂為啥上面那樣配置讀不出ApplicationContext.xml檔案啊
<param-name>contextConfigLocation</param-name>
<param-value>classpath:Spring/ApplicationContext.xml</param-value>
</context-param>
<listener>
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
</listener>
uj5u.com熱心網友回復:


附上兩個啟動報錯的資訊
uj5u.com熱心網友回復:
看一下你的targe檔案夾下有這個xml嗎?uj5u.com熱心網友回復:
WX搜Spring中文社區了解相關內容轉載請註明出處,本文鏈接:https://www.uj5u.com/houduan/138035.html
標籤:Web 開發
