To upgrade Spring Boot, you have to upgrade the tools and libs as well, including Gradle, Tomcat, Kafka, Redis, Zoomkeeper, Hanadb .etc
WARN Message for Implicit ‘open-in-view‘: a new feature that can avoid lazy loading exception from controller(web views), can disabled it by set
spring.jpa.open-in-view: false
New id generator(sequence generator): SequenceStyleGenerator is default abled, you can disabled it by set
spring.jpa.hibernate.use-new-id-generator-mappings: false
Or you can use replace the deprecated @SequenceGenerator, refer here .
This is a simple example:
@Id @GeneratedValue(strategy= GenerationType.SEQUENCE, generator="ID_SEQ") @GenericGenerator(name = "ID_SEQ", strategy = "org.hibernate.id.enhanced.SequenceStyleGenerator", parameters = { @Parameter(name = SEQUENCE_PARAM, value = "ID_SEQ") }) private Long id;
Json date format: The date format which json returned has been changed form timestamps(createTime: 1544693261000) to UTC string("2018-12-13T09:27:41.000+0000") at Spring Boot2, you can use old format by set
pring.jackson.serialization.write-dates-as-timestamps: true
Spring Boot upgrade to 2.1.6 release
原文:https://www.cnblogs.com/Lucifer-Jiang/p/12245281.html