SpringBoot 1.5.x和2.0.x区别

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了SpringBoot 1.5.x和2.0.x区别相关的知识,希望对你有一定的参考价值。

参考技术A 1、手动配置mvc框架,1.5.可以在配置类中继承抽象类 WebMvcConfigurerAdapter

以下是 WebMvcConfigurerAdapter 重写的方法

2.0.x已被废除,实现接口 WebMvcConfigurer 或者直接继承 WebMvcConfigurationSupport

直接继承WebMvcConfigurationSupport

以上是关于SpringBoot 1.5.x和2.0.x区别的主要内容,如果未能解决你的问题,请参考以下文章

Spring Boot 2.1 MVC 日志记录

SpringBoot 1.5.x 集成 Quartz 任务调度框架

Springboot 2.0.x Redis缓存Key生成器,自定义生成器

springboot 1.5.X junit测试

迁移到 Spring Boot 2.0.x 时全局 CORS 配置中断

Spring Boot 1.5.x 与 Hibernate 4.x 的兼容性