您的位置:首页 > 编程语言 > Java开发

spring boot版本更新出现的一些问题

2016-12-25 23:31 543 查看
spring boot更新比较频繁,因此了解一些更新的新特性比较重要。

**相较于Spring Boot 1.3,最新推出的Spring Boot 1.4在浏览器的支持下实现了实时性,自身更是运用了新的架构和API,能够支持信息定制化和图像输出。

**Spring Boot 1.4.0基于Spring Framework 4.3.2版本,也就是支持Spring Framework 4.3.2的所有新特性,比较闪耀的点是支持OkHttp3、Jackson 2.8.x、Undertow 1.4.

**由于这次升级是跨1.3版本直接升级,一些在1.3版本时提示已经Deprecated的配置和方法都出了一点小问题,如GzipFilterAutoConfiguration和ManagementSecurityAutoConfiguration都在1.3.x版本过程中被废掉了,删掉了就好。

再说一下最近碰见的问题

在spring boot 1.4中整合的hibernate中,解析的时候会出现一些给复合单词(一般有两个单词组成的变量)加上下划线,单个的单词没有影响。折腾了一下,发现解析后的sql有细微的不同。

版本1.3.7

select coursemode0_.id as id1_1_0_, coursemode0_.code as code2_1_0_, coursemode0_.collegeId as collegeI3_1_0_, coursemode0_.name as name4_1_0_, coursemode0_.type as type5_1_0_ from c_course_tab coursemode0_ where coursemode0_.id=?

版本1.4

select coursemode0_.id as id1_1_0_, coursemode0_.code as code2_1_0_, coursemode0_.college_id as college_3_1_0_, coursemode0_.name as name4_1_0_, coursemode0_.type as type5_1_0_ from c_course_tab coursemode0_ where coursemode0_.id=?

hibernate 5中

NamingStrategy 被移除了,使用经过优化设计后的新 API:org.hibernate.boot.model.naming.ImplicitNamingStrategy和org.hibernate.boot.model.naming.PhysicalNamingStrategy

public List findAll() {

return getQuery(null, (Sort) null).getResultList();

}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐