Spring Boot 2.0 要求Java 版本必須8以上, Java 6 和 7 不再支持。
基本支持了Java 9。之所以是“基本”,是因為還沒得到用戶的驗證。
Redis客戶端驅動現在由Jedis變為了Lettuce。使用Jedis的同學們,大概知道方向了吧。
但仍然支持Jedis,那么exclude掉io.lettuce:lettuce-core,然后添加 redis.clients:jedis就是了。
Spring生命周期。一個全新的spring-boot-starter-json starter 聚合了很多常用的json工具,可以支持對json的讀寫。
它不僅僅提供了jackson-databind而且當你使用java8時候,還提供了有用的模塊:jackson-datatype-jdk8, jackson-datatype-jsr310 和 jackson-module-parameter-names。
之前使用jackson-databind的地方就可以使用這個新的starter了。
Spring Boot 2.0 提供了一個新的starter ,用來支持Reactive Spring web frameworks。該starter為spring-boot-starter-webflux。其中Reactor Netty是默認的web引擎(spring-boot-starter-reactor-netty)。
Spring boot,Spring Boot 2.0 是建立在Spring Framework 5.0之上的(最低要求)。Spring 5最大的亮點就是reactive。你可以去看看這篇:Spring 5 新增全新的reactive web框架:webflux。
Spring Boot現在默認是使用CGLIB代理,同時包含AOP支持。如果你需要基于代理(proxy-based)的代理策略,你需要把spring.aop.proxy-target-class設置為false。
要求Tomcat最低版本為8.5。
Actuator的端點(endpoint)現在默認映射到/application,比如,/info 端點現在就是在/application/info。但你可以使用management.context-path來覆蓋此默認值。
版权声明:本站所有资料均为网友推荐收集整理而来,仅供学习和研究交流使用。
工作时间:8:00-18:00
客服电话
电子邮件
admin@qq.com
扫码二维码
获取最新动态