Spring boot介绍
官方文档:
Spring Boot makes it easy to create stand-alone, production-grade Spring based Applications that you can “just run”.
Spring Boot使创建独立的、基于生产级Spring的应用程序变得很容易,你可以“直接运行”这些应用程序。
We take an opinionated view of the Spring platform and third-party libraries so you can get started with minimum fuss. Most Spring Boot applications need very little Spring configuration.
我们对Spring平台和第三方库有自己的见解,这样你就可以轻松入门了。大多数Spring引导应用程序只需要很少的Spring配置。
Srpingboot 微服务框架—分布式
为什么要使用SpingBoot
简化xml,提高开发效率
配置或者是YML文件
SpringBoot的作用
简化xml(除了mybatis)
独立的应用程序
单独的war工程-不需要集成tomcat插件运行(内嵌一个tomcat)
SpringBoot的优点
1.创建独立的spring应用程序
2.嵌入的Tomcat,无需部署war文件
3.简化maven配置
4.自动配置Spring
5提供生产就绪功能,如指标,健康检查,外部配置
6.开箱即用,没有代码生成,也无需配XML配置