当前位置:网站首页>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
边栏推荐
- 推送Markdown格式信息到钉钉机器人
- Dynamic menu, auto align
- 【ROS玩转Turtlesim小海龟】
- High level application of SQL statements in MySQL database (I)
- Nuscenes -- remedies for missing image files or 0-size images encountered during dataset configuration
- Research and investment strategy report on China's nano silver wire conductive film industry (2022 Edition)
- Non single file component
- [Wuhan University] information sharing of the first and second postgraduate entrance examinations
- Are you afraid of being asked MySQL related questions during the interview? This 30000 word essence summary + 100 interview questions, and it's enough to hang the interviewer
- Memory alignment of structures
猜你喜欢
大厂面试必问:如何解决TCP可靠传输问题?8张图带你详细学习
Leetcode: calculate the number of elements less than the current element on the right (sortedlist+bisect\u left)
[text data mining] Chinese named entity recognition: HMM model +bilstm_ CRF model (pytoch) [research and experimental analysis]
Talk about GC mechanism often asked in interview
Canvas to add watermark to pictures
2022安全员-B证考试题库及答案
Dynamic menu, auto align
加分利器 不负所托 | 知道创宇获攻防演练防守方感谢信!
双亲委派机制
2022-06-10 work record --js- obtain the date n days after a certain date
随机推荐
Research and investment strategy report on China's bridge anticorrosive coating industry (2022 Edition)
【Mongodb】READ_ME_TO_RECOVER_YOUR_DATA,数据库被恶意删除
Tech Talk 活动回顾|云原生 DevOps 的 Kubernetes 技巧
How to submit the shopee opening and settlement flow?
【Mongodb】READ_ ME_ TO_ RECOVER_ YOUR_ Data, the database is deleted maliciously
See how sparksql supports enterprise data warehouse
See how sparksql supports enterprise level data warehouse
EPICS記錄參考3 -- 所有記錄都有的字段
The difference between interceptor and filter
Recommended course: workplace writing training
推送Markdown格式信息到釘釘機器人
MySQL夺命10问,你能坚持到第几问?
The difference between get and post
上新了,华为云开天aPaaS
Leetcode: calculate the number of elements less than the current element on the right (sortedlist+bisect\u left)
【武汉大学】考研初试复试资料分享
Are you afraid of being asked MySQL related questions during the interview? This 30000 word essence summary + 100 interview questions, and it's enough to hang the interviewer
Sword finger offer 42 Maximum sum of successive subarrays
Solve the problem of port occupation
Database transaction Transanction