關(guān)于SpringMVC 配置的問題
<?xml?version="1.0"?encoding="UTF-8"?> <web-app?xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"?xmlns="http://java.sun.com/xml/ns/javaee"?xsi:schemaLocation="http://java.sun.com/xml/ns/javaee?http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"?id="WebApp_ID"?version="3.0"> ?? ??<!--?配置DispatcherServlet?--> ??<servlet> ?????????? ??????????<!--?配置springMVC需要加載的配置文件? ??????????????spring-dao.xml,spring-service.xml,spring-web.xml ??????????????Mybatis???Spring??SpringMVC ??????????--> ??????????<servlet-name>seckill</servlet-name> ??????????<servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class> ??????????<init-param> ??????????????????<param-name>contextConfigLoaction</param-name> ??????????????????<param-value>classpath:spring/spring-*.xml</param-value> ??????????</init-param> ??</servlet> ?? ??<servlet-mapping> ??????????<servlet-name>seckill</servlet-name> ??????????<!--?默認(rèn)匹配所有的請求?--> ??????????<url-pattern>/</url-pattern> ??</servlet-mapping> ?? </web-app>
這個是web.xml中的配置
但是程序運(yùn)行是報異常
org.springframework.beans.factory.BeanDefinitionStoreException:?IOException?parsing?XML?document?from?ServletContext?resource?[/WEB-INF/seckill-servlet.xml];?nested?exception?is?java.io.FileNotFoundException:?Could?not?open?ServletContext?resource?[/WEB-INF/seckill-servlet.xml]
請問老師這是什么原因
2016-05-30
?<param-name>contextConfigLoaction</param-name>單詞拼寫錯誤location,仔細(xì)一點