当前位置:网站首页>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
边栏推荐
- 详细了解关于sentinel的实际应用
- Dynamic menu, auto align
- O (n) complexity hand tear sorting interview questions | an article will help you understand counting sorting
- 2022安全员-B证考试题库及答案
- EPICS记录参考2--EPICS过程数据库概念
- ACL (access control list) basic chapter - Super interesting learning network
- Do you need to improve your code reading ability? It's a trick
- Row and column differences in matrix construction of DX HLSL and GL glsl
- Servlet
- vulnhub DC: 2
猜你喜欢

【文本数据挖掘】中文命名实体识别:HMM模型+BiLSTM_CRF模型(Pytorch)【调研与实验分析】

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

Push markdown format information to the nailing robot
See how sparksql supports enterprise level data warehouse

Combine pod identity in aks and secret in CSI driver mount key vault

Cases of addition, deletion, modification and search of C # learning for two years and C # import and export (de duplication)

【武汉大学】考研初试复试资料分享

【ROS玩转Turtlesim小海龟】

High level application of SQL statements in MySQL database (II)

糖豆人登录报错解决方案
随机推荐
Tech Talk 活动回顾|云原生 DevOps 的 Kubernetes 技巧
2022年高压电工考试模拟100题及在线模拟考试
It's hard to hear C language? Why don't you take a look at my article (7) input and output
Introduction to machine learning compilation course learning notes lesson 1 overview of machine learning compilation
Leetcode algorithm The first common node of two linked lists
Learn more about the practical application of sentinel
Code farmers should also understand the IPv4 subnet division of point networks
EPICS记录参考2--EPICS过程数据库概念
EPICS記錄參考3 -- 所有記錄都有的字段
Layer 2 and layer 3 forwarding principle based on VLAN
详细了解关于sentinel的实际应用
2022-06-10 work record --js- obtain the date n days after a certain date
糖豆人登录报错解决方案
Memory alignment of structures
双亲委派机制
Common sense of resolution
Database transaction Transanction
Solve the problem of non secure websites requesting localhost to report CORS after chrome94
Nuscenes -- remedies for missing image files or 0-size images encountered during dataset configuration
【武汉大学】考研初试复试资料分享
http://t.cn/ROQLquP