In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/02 Report--
This article is about how to get started with Spring Boot from scratch. The editor thinks it is very practical, so I share it with you. I hope you can get something after reading this article.
1 before the start
Before I began to learn Spring Boot, I had never been exposed to Spring-related projects before. The basics of Java was taught by myself a few years ago, and now I probably forget it. Before writing about Spring Boot's own learning process, at the same time, I give encouragement to the students who study together. I believe they can learn well. I probably understand the whole development of Spring. There is still a lot of groundwork knowledge to know, and even if I know. No practical experience may not be able to deeply understand what is different in the actual project. In short, just do it, and then stick to it. As for why I want to learn Spring Boot, this is also my own choice, a link in the road to architecture, a big move in martial arts, and I look forward to learning this big move. Spring Boot is already the top layer of Spring, from top to bottom, from new to old, opening up the entire Spring context.
2 nomenclature
Of course, before learning, we must do some research to understand all kinds of Spring-related terms, because there are so many, if we do not understand, the following learning will also cause confusion and difficult to understand, especially if we have never come into contact with Java Web, what we have learned about Spring is ultimately how to better and faster build enterprise-level Web applications. Here are some of the terms I learned before learning and the explanation of the functional role played by the term.
The concept is still a little bit more, but basically refers to the concept of a large software framework, specific to each of which can extend a lot of knowledge, more can see the reference link for details. But this is just the beginning, and you can learn more about it later, and understand the characteristics of each term in practice.
3 characteristics and advantages and disadvantages of Spring Boot
Now that I've chosen to start from the top down, new and old, we need to know more about Spring Boot and what role does Spring Boot play in the entire technology stack?
Spring Boot's slogan is BUILD ANYTHING WITH SPRING BOOT, build everything with Spring Boot!
From the component diagram on the official website, we can see that Spring Boot is a large container and the entrance to build all Spring-based applications. Spring Boot aims to enable us to start and run the project as soon as possible through the least pre-Spring configuration. For example, the biggest advantage of Spring Boot compared to Spring MVC is that it is easy to use, the convention is greater than the configuration, and it will not be confused by the xml configuration file from time to time as before when using Spring MVC. From this point of view, Spring Boot is not the core of building Web applications, we can also know that we can quickly get started with Spring Boot, but we can learn all about it through this portal. We can list the features of Spring Boot:
You can use Spring Initializr to get started in seconds
With Spring Initializr (https://start.spring.io/), we can quickly build a Spring Boot project based on Web UI
Build output anything: REST API,WebSocket,Web, streams, tasks, etc.
In short, it is related to Web!
Simplify security policy integration
Very friendly support for SQL and NoSQL
Support for runtime embedded containers: Tomcat,Jetty and Undertow
Very easy to develop and test our Web application
Developer production tools such as LiveReload and Auto Restart
Automatic version dependency management
Avoid writing a lot of boilerplate code, comments, and XML configurations.
Features that can be used for production, such as tracking, metrics and health
You can use your favorite development IDE, such as Spring Tool Suite (STS), IntelliJ IDEA (IDEA) or NetBeans, etc.
It provides CLI (command line interface) tools that make it very easy and quick to develop and test Spring Boot (Java or Groovy) applications from the command prompt
Many plug-ins are provided
Spring Boot applications can be easily developed and tested using build tools such as Maven and Gradle
Can be easily used with embedded databases and in-memory databases
With the above features, what benefits or limitations can Spring Boot bring to me:
Spring is packaged to make it easy to understand and develop Spring applications and to simplify configuration, testing, packaging and integration of third-party tools
Quickly configure projects, manage dependent versions, quickly configure unit tests, integration tests, etc., improve development efficiency and productivity
It can only solve problems like Spring Framework, but not new ones, that is, what Spring FrameWork can do
Converting an existing or legacy Spring Framework project to a Spring Boot application can be laborious
4 Summary
This article details the terminology related to Spring Boot from scratch, understands Spring Boot from scratch, and describes the features, advantages and disadvantages of Spring Boot. Through the detailed description of Spring Boot, let us have a basic understanding of it, and then we begin to enter the internal and practical aspects of Spring Boot.
This is how Spring Boot starts from scratch. The editor believes that there are some knowledge points that we may see or use in our daily work. I hope you can learn more from this article. For more details, please follow the industry information channel.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.