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

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();
}

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值