maven springMvc启动报错,找不到beans.xml,该怎么解决
我的beans.xml是放在resource目录下的。
然后web.xml的配置文件为:
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>classpath:beans.xml</param-value>
</context-param>
为什么启动tomcat的时候报错
Caused by: java.io.FileNotFoundException: class path resource [beans.xml] cannot be opened because it does not exist
找不到这个配置文件呢?
------解决思路----------------------
spring何时会去context-param加载配置文件
------解决思路----------------------
spring3是可以不用bean.xml的