MockServletContext.java Couldn't get resource paths for class path resource [WEB-INF/content/]
2013-01-11 12:13:48 [WARN] [MockServletContext.java->getResourcePaths(212)] Couldn't get resource paths for class path resource [WEB-INF/content/carcode/]
java.io.FileNotFoundException: class path resource [WEB-INF/content/carcode/] cannot be resolved to URL because it does not exist
原因很有可能:
采纳的答案
如果程序去寻找WEB-INF/content/
是因为你的lib下有struts2-convention-plugin-2.*.*.jar
你是想零配置吗?不需要,这个jar删除掉可能就不会寻找这个目录了。
另外这个目录是可以修改的:
<constant name="struts.convention.result.path" value="/WEB-INF/content" />
试试!~~