当前位置:网站首页>01_ Getting started with the spingboot framework
01_ Getting started with the spingboot framework
2022-06-24 23:06:00 【Book opens autumn maple】
1. Spring Boot brief introduction
Spring Boot yes Spring A whole new framework in the family , It is used to simplify Spring Application creation and development process , It can also be said that Spring Boot Can simplify our previous adoption of SpringMVC + Spring + MyBatis The process of developing the framework .-- Simplify the development ( Primary simplified configuration ), Improve development efficiency
In the past, we used SpringMVC + Spring + MyBatis When the framework is being developed , Build and integrate the three frameworks , We need to do a lot of work , Such as configuration web.xml, To configure Spring, To configure MyBatis, And put them together and so on , and Spring Boot The framework revolutionized the development process , Completely abandoned the tedious xml The configuration process , Simplify our development process with a large number of default configurations .--- Convention over configuration , Configuration is better than code
So using Spring Boot It's very easy and fast to create based on Spring Framework applications , It makes coding simple , Configuration has become simpler , Deployment becomes easier , Monitoring becomes easier . It is because Spring Boot It reduces complexity to simplicity , Make development extremely simple and fast , So in the industry, people pay more attention to .-- Now most projects are based on springboot Development
Spring Boot Focus on the trend chart in China : baidu index
http://t.cn/ROQLquP
2. Spring Boot Characteristics of
- Can quickly create based on Spring Applications for
- Be able to use... Directly java main Method to start the embedded Tomcat Server running Spring Boot Program , No deployment required war Package file
- Provide agreed starter POM To simplify the Maven To configure , Give Way Maven Configuration becomes simple
- Automatic configuration , According to the Maven Depend on the configuration ,Spring boot Automatic configuration Spring、Spring mvc etc.
- Provides the program health check and other functions
- You can basically not use XML The configuration file , Use annotations to configure 、Java To configure
3. Spring Boot Four cores
(1) Automatic configuration
For many Spring Applications and common application functions ,Spring Boot It can automatically provide relevant configuration
(2) Start relying on
tell Spring Boot What functions are needed , It can introduce the required dependency Libraries
(3)Actuator
So that you can go deep into the running Spring Boot Applications , A look Spring Boot Internal information of the program
(4) Command line interface
This is a Spring Boot Optional features , Mainly aimed at Groovy Language use
Groovy It's based on JVM(Java virtual machine ) Agile development language , It is a combination of Python、Ruby and Smalltalk Many powerful features of ,Groovy The code can work with Java The code is well combined , It can also be used to extend existing code , Because it runs in JVM Characteristics of ,Groovy You can use other Java A library of languages
4. Spring Boot Development version recommendation
- Spring boot Now it's divided into two major series ,1.x Series and 2.x series
- If using eclipse, Recommended installation Spring Tool Suite (STS) plug-in unit
- If you use IDEA Flagship Edition , Bring it with you Spring Boot plug-in unit
- Recommended Maven 3.3+,Maven The latest version is 3.6.0(2019.01)
- Recommended Java 8,Spring Boot 1.x The version of the series is compatible with Java 6,Spring Boot 2.x The series needs at least Java8
边栏推荐
- 03_SpingBoot 核心配置文件
- Research and investment strategy report on China's nano silver wire conductive film industry (2022 Edition)
- Environment configuration | vs2017 configuring openmesh source code and environment
- Dynamic memory management (1)
- ThreadLocal local thread
- 【WSL】SSH 远程连接及宿主机端口转发配置
- Leetcode: calculate the number of elements less than the current element on the right (sortedlist+bisect\u left)
- Getting started with the go Cobra command line tool
- Some updates about a hand slider (6-18, JS reverse)
- 研究生宿舍大盘点!令人羡慕的研究生宿舍来了!
猜你喜欢

Epics record reference 4 -- fields for all input records and fields for all output records

vulnhub Vegeta: 1

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

vulnhub DC: 2

Learn more about the practical application of sentinel

The extra points and sharp tools are worthy of the trust | know that Chuangyu won the letter of thanks from the defense side of the attack and defense drill!

【nvm】
![[postgraduate entrance examination English] prepare for 2023, learn list9 words](/img/2d/9ff691c9ff50fba2df73f726db26f2.jpg)
[postgraduate entrance examination English] prepare for 2023, learn list9 words

Recommended course: workplace writing training

Push markdown format information to the nailing robot
随机推荐
07_SpingBoot 实现 RESTful 风格
Wechat side: what is consistent hash? In what scenario? What problems have been solved?
大厂面试必问:如何解决TCP可靠传输问题?8张图带你详细学习
Annotation
加分利器 不负所托 | 知道创宇获攻防演练防守方感谢信!
【ROS玩转Turtlesim小海龟】
Nuscenes -- remedies for missing image files or 0-size images encountered during dataset configuration
[postgraduate entrance examination English] prepare for 2023, learn list8 words
Spark 离线开发框架设计与实现
Combine pod identity in aks and secret in CSI driver mount key vault
How to integrate Huawei cloud function services in fluent
[untitled]
canvas 实现图片新增水印
EPICS记录参考4--所有输入记录都有的字段和所有输出记录都有的字段
[postgraduate entrance examination English] prepare for 2023, learn list9 words
ThreadLocal local thread
Solve the problem of non secure websites requesting localhost to report CORS after chrome94
Getting started with the go Cobra command line tool
Cases of addition, deletion, modification and search of C # learning for two years and C # import and export (de duplication)
Learn more about redis' eight data types and application scenario analysis
http://t.cn/ROQLquP