从springframework 2.5.6迁移到3.2.8后重定向View时出现错误404

时间:2014-10-01 14:16:50

标签: spring spring-mvc migration

我已将我的应用程序从springframework 2.5.6迁移到3.2.8,保留了所有相同的控制器和配置文件。

我刚从

更改了XML Schema文件
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:schemaLocation="
        http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd">

<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"   
    xsi:schemaLocation="
        http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.2.xsd">   

并替换jar文件:

<include name="**/spring-2.5.6.jar"/>
<include name="**/spring-webmvc-2.5.6.jar"/>

<include name="**/spring/spring-core-3.2.8.RELEASE.jar"/>
<include name="**/spring/spring-web-3.2.8.RELEASE.jar"/>
<include name="**/spring/spring-webmvc-3.2.8.RELEASE.jar"/>
<include name="**/spring/spring-aop-3.2.8.RELEASE.jar"/>
<include name="**/spring/spring-beans-3.2.8.RELEASE.jar"/>
<include name="**/spring/spring-context-3.2.8.RELEASE.jar"/>
<include name="**/spring/spring-context-support-3.2.8.RELEASE.jar"/>    
<include name="**/spring/spring-expression-3.2.8.RELEASE"/>
<include name="**/spring/spring-jdbc-3.2.8.RELEASE.jar"/>               
<include name="**/spring/spring-orm-3.2.8.RELEASE.jar"/>
<include name="**/spring/spring-jdbc-3.2.8.RELEASE.jar"/>
<include name="**/spring/spring-tx-3.2.8.RELEASE.jar"/>
<include name="**/spring/spring-instrument-3.2.8.RELEASE.jar"/>

但是将一个控制器重定向到另一个控制器不再起作用了,我得到了一个ERROR 404

谢谢

0 个答案:

没有答案