After adding Hibernate and Spring capability to the project, and all the configuration files(web.xml, applicationContext.xml) being well configged, one problem should be taken attention to, though it is a piece of cake. Yep, just a piece of cake, but i missed it and problem happened.
Never forget to import the jar file which is named: struts2-spring-plugin-2.1.6.jar.
without this, "struts.xml" fails to load configuration, and throws exception.
本文介绍了一个在集成Struts2与Spring框架时容易被忽视的问题:未正确导入struts2-spring-plugin-2.1.6.jar文件。这会导致struts.xml配置文件加载失败并引发异常。

被折叠的 条评论
为什么被折叠?



