当前位置:网站首页>01_SpingBoot 框架入门
01_SpingBoot 框架入门
2022-06-24 19:41:00 【书启秋枫】
1. Spring Boot简介
Spring Boot是Spring家族中的一个全新的框架,它用来简化Spring应用程序的创建和开发过程,也可以说Spring Boot能简化我们之前采用SpringMVC + Spring + MyBatis框架进行开发的过程。--简化开发(主要简化配置),提高开发效率
在以往我们采用SpringMVC + Spring + MyBatis框架进行开发的时候,搭建和整合三大框架,我们需要做很多工作,比如配置web.xml,配置Spring,配置MyBatis,并将它们整合在一起等,而Spring Boot框架对此开发过程进行了革命性的颠覆,完全抛弃了繁琐的xml配置过程,采用大量的默认配置简化我们的开发过程。--- 约定优于配置,配置优于代码
所以采用Spring Boot可以非常容易和快速地创建基于Spring框架的应用程序,它让编码变简单了,配置变简单了,部署变简单了,监控变简单了。正因为 Spring Boot 它化繁为简,让开发变得极其简单和快速,所以在业界备受关注。--现在大部分项目都是基于springboot开发
Spring Boot在国内的关注趋势图:百度指数
http://t.cn/ROQLquP
2. Spring Boot的特性
- 能够快速创建基于Spring的应用程序
- 能够直接使用java main方法启动内嵌的Tomcat服务器运行Spring Boot程序,不需要部署war包文件
- 提供约定的starter POM来简化Maven配置,让Maven的配置变得简单
- 自动化配置,根据项目的Maven依赖配置,Spring boot自动配置Spring、Spring mvc等
- 提供了程序的健康检查等功能
- 基本可以完全不使用XML配置文件,采用注解配置、Java配置
3. Spring Boot四大核心
(1)自动配置
针对很多Spring应用程序和常见的应用功能,Spring Boot能自动提供相关配置
(2)起步依赖
告诉Spring Boot需要什么功能,它就能引入需要的依赖库
(3)Actuator
让你能够深入运行中的Spring Boot应用程序,一探Spring Boot程序的内部信息
(4)命令行界面
这是Spring Boot的可选特性,主要针对Groovy语言使用
Groovy是一种基于JVM(Java虚拟机) 的敏捷开发语言,它结合了Python、Ruby和Smalltalk的许多强大的特性,Groovy 代码能够与Java代码很好地结合,也能用于扩展现有代码,由于其运行在JVM上的特性,Groovy可以使用其他Java语言编写的库
4. Spring Boot开发版本推荐
- Spring boot目前分为两大版本系列,1.x系列和2.x系列
- 如果是使用eclipse,推荐安装Spring Tool Suite (STS)插件
- 如果使用IDEA旗舰版,自带了Spring Boot插件
- 推荐使用Maven 3.3+,Maven目前最新版本为3.6.0(2019.01)
- 推荐使用Java 8,Spring Boot 1.x系列的版本兼容Java 6,Spring Boot 2.x系列需要至少Java8
边栏推荐
- Tetris
- 花房集团二次IPO:成于花椒,困于花椒
- Panorama of enterprise power in China SSD industry
- Recommended movies: Northeast tiger, licorice pizza
- Recommended course: workplace writing training
- [ROS play with turtle turtle]
- High level application of SQL statements in MySQL database (I)
- Leetcode algorithm The first common node of two linked lists
- Programmers become gods by digging holes in one year, carrying flags in five years and becoming gods in ten years
- Combine pod identity in aks and secret in CSI driver mount key vault
猜你喜欢
Simulated 100 questions and online simulated examination of high voltage electrician examination in 2022
【Mongodb】READ_ME_TO_RECOVER_YOUR_DATA,数据库被恶意删除
Annotation
推送Markdown格式信息到钉钉机器人
Servlet
环境配置 | VS2017配置OpenMesh源码和环境
Combine pod identity in aks and secret in CSI driver mount key vault
2022安全员-B证考试题库及答案
Servlet
对抗训练理论分析:自适应步长快速对抗训练
随机推荐
Introduction to machine learning compilation course learning notes lesson 1 overview of machine learning compilation
Leetcode: push domino (domino simulation)
结构体的内存对齐
Research Report on market evaluation and investment direction of Chinese dermatology drugs (2022 Edition)
Research Report on market supply and demand and strategy of China's solar charging controller industry
vulnhub Vegeta: 1
find your present (2)
是否需要提高代码阅读能力?这有技巧
Row and column differences in matrix construction of DX HLSL and GL glsl
OSPF basic content
cat写多行内容到文件
Docker installation MySQL simple without pit
[postgraduate entrance examination English] prepare for 2023, learn list8 words
Recommended course: workplace writing training
Pousser l'information au format markdown vers le robot nail
Memory alignment of structures
Research and investment strategy report on China's building steel structure anticorrosive coating industry (2022 Edition)
Simulated 100 questions and online simulated examination of high voltage electrician examination in 2022
Leetcode algorithm refers to offer II 027 Palindrome linked list
Push markdown format information to the nailing robot