首页 文章

如何更改找到bean的上下文路径

提问于
浏览
0

我在启动应用程序时收到此错误:

java.io.FileNotFoundException:无法打开ServletContext资源[/WEB-INF/spring/servlet/servlet-context.xml]

我不知道Spring为什么要搜索servlet-context.xml . 我的所有上下文都在web-inf / context / portlet中配置是否有我可以添加到web.xml的设置,因此tomcat可以将来自不同目录的上下文解析为/WEB-INF/spring/servlet/servlet-context.xml ?或者是解决此问题的另一种方法?

1 回答

相关问题