升级 Spring4 的缘由是:想要将老项目从jdk1.6升级之1.8,而Spring 4 之前的版本不兼容 JDK8。html
Spring 4 相比 Spring 3,引入许多新特性,这里列举几条较为重要的:java
<dependency> <groupId>com.fasterxml.jackson.core</groupId> <artifactId>jackson-core</artifactId> <version>2.7.0</version> </dependency> <dependency> <groupId>com.fasterxml.jackson.core</groupId> <artifactId>jackson-databind</artifactId> <version>2.7.0</version> </dependency>
3.1
<?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:util="http://www.springframework.org/schema/util" xmlns:context="http://www.springframework.org/schema/context" xmlns:mvc="http://www.springframework.org/schema/mvc" xsi:schemaLocation="http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc-3.1.xsd http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.1.xsd http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-3.1.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.1.xsd">
TransactionalTestExecutionListener
,则子类不须要重复定义,不然会致使错误java.lang.IllegalStateException: Cannot start a new transaction without ending the existing transaction.
升级 spring 4:
https://dunwu.github.io/blog/...
单测事务问题:
https://my.oschina.net/u/2430...
tomcat servlet 版本问题:
http://tomcat.apache.org/whic...