当前位置:网站首页>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
边栏推荐
- Memory alignment of structures
- cat写多行内容到文件
- 2022安全员-B证考试题库及答案
- vulnhub DC: 2
- Row and column differences in matrix construction of DX HLSL and GL glsl
- What kind of processor architecture is ARM architecture?
- [postgraduate entrance examination English] prepare for 2023, learn list8 words
- Panorama of enterprise power in China SSD industry
- 关于某手滑块的一些更新(6-18,js逆向)
- Research Report on market supply and demand and strategy of China's solar charging controller industry
猜你喜欢

糖豆人登录报错解决方案

The difference between interceptor and filter

Parental delegation mechanism

Development specification - parameter verification exception, exception return prompt section

【Mongodb】READ_ ME_ TO_ RECOVER_ YOUR_ Data, the database is deleted maliciously

The usage difference between isempty and isblank is so different that so many people can't answer it

推送Markdown格式信息到釘釘機器人

Second IPO of Huafang group: grown up in Zanthoxylum bungeanum, trapped in Zanthoxylum bungeanum

The large-scale market of graduate dormitory! Here comes the enviable graduate dormitory!

【武汉大学】考研初试复试资料分享
随机推荐
面试害怕被问MySQL相关问题 ?这份三万字精华总结 + 面试100 问,吊打面试官完全够了
Sword finger offer 13 Range of motion of robot
How to integrate Huawei cloud function services in fluent
Introduction to machine learning compilation course learning notes lesson 1 overview of machine learning compilation
Servlet
How to submit the shopee opening and settlement flow?
[Wuhan University] information sharing of the first and second postgraduate entrance examinations
Dynamic menu, auto align
加分利器 不负所托 | 知道创宇获攻防演练防守方感谢信!
EPICS记录参考4--所有输入记录都有的字段和所有输出记录都有的字段
EPICS记录参考3 -- 所有记录都有的字段
[WSL] SSH Remote Connection and host port forwarding configuration
Research Report on research and investment prospects of China's container coating industry (2022 Edition)
推送Markdown格式信息到釘釘機器人
Learn more about redis' eight data types and application scenario analysis
2022安全员-B证考试题库及答案
Combine pod identity in aks and secret in CSI driver mount key vault
Analyze the implementation process of oauth2 distributed authentication and authorization based on the source code
Leetcode algorithm refers to offer II 027 Palindrome linked list
O (n) complexity hand tear sorting interview questions | an article will help you understand counting sorting
http://t.cn/ROQLquP