springmvc3.2 升级到4.x

安全问题需要更新。

1.下载 到spring官网下载了个4.25的包 spring-framework-4.2.5.RELEASE-dist  地址:http://repo.spring.io/release/org/springframework/spring/

2.下载 tomcat官网下载了个9.x的apache-tomcat-9.0.12-windows-x64.zip

3.下载 jre官网下载了个8版本的,更高版本没测试,应该也可以

4.替换:将spring3.x的jar包到lib目录全部删除,把4版本里面的jar包拷贝进去(没用的文档类的我没拷贝进去)

5.把几个配置文件 3.2.xsd  全部换成4.0.xsd

类似下面xmlns:aop="http://www.springframework.org/schema/aop" xmlns:tx="http://www.springframework.org/schema/tx"    xsi:schemaLocation="http://www.springframework.org/schema/beans         http://www.springframework.org/schema/beans/spring-beans-4.0.xsd         http://www.springframework.org/schema/mvc         http://www.springframework.org/schema/mvc/spring-mvc-4.0.xsd         http://www.springframework.org/schema/context         http://www.springframework.org/schema/context/spring-context-4.0.xsd         http://www.springframework.org/schema/aop         http://www.springframework.org/schema/aop/spring-aop-4.0.xsd         http://www.springframework.org/schema/tx         http://www.springframework.org/schema/tx/spring-tx-4.0.xsd ">

6.jackson库需要替换    完整的包下载地址

https://download.csdn.net/download/xqwin/10752267

你可能感兴趣的:(springmvc3.2 升级到4.x)