spring boot编绎器
时间: 2023-12-23 13:04:00 浏览: 31
根据提供的引用内容,可以了解到spring boot编译器的相关信息。在spring boot中,编译器的功能主要是通过@Configuration组装起来的。在spring boot 1中,可以使用@Configuration类来启用编译器功能。然而,在spring boot 2中,不再支持直接使用@Configuration类来启用编译器功能。相反,可以使用@ConditionalOnSpringBoot1和@ConditionalOnSpringBoot2这两个注解来分别支持spring boot 1和spring boot 2。
为了支持Spring Boot 2,需要先升级starter。starter是一种用于简化应用程序配置和依赖管理的机制。通过升级starter,可以确保应用程序与Spring Boot 2兼容。选择starter同时兼容spring boot 1和spring boot 2的原因是为了确保应用程序在升级到spring boot 2之前可以正常运行,并且可以平滑地迁移到新版本。
总结起来,spring boot编译器的功能可以通过@Configuration组装起来。在spring boot 1中,可以使用@Configuration类来启用编译器功能。在spring boot 2中,可以使用@ConditionalOnSpringBoot1和@ConditionalOnSpringBoot2这两个注解来分别支持spring boot 1和spring boot 2。为了支持Spring Boot 2,需要先升级starter,并选择starter同时兼容spring boot 1和spring boot 2的原因是为了确保应用程序在升级到spring boot 2之前可以正常运行,并且可以平滑地迁移到新版本。
相关推荐
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![docx](https://img-home.csdnimg.cn/images/20210720083331.png)