Spring Boot To learn how? To learn what things? Otherwise first learn SSM? Song Ge talk about views

It may be a lot new to Spring Boot junior partner will have such a doubt, Spring Boot To learn how, or first learn SSM? Today, combined with his experience, and we talk about my views, but also the way recommended several Spring Boot learning materials.

What is 1.Spring Boot

We have just started learning JavaWeb when using a Servlet / JSP do develop, engage in a Servlet interface, very large head, then we through hidden fields or reflection, etc., can be reduced to create a Servlet, but still inconvenient.

Later, we introduce Struts2 / SpringMVC this type of framework, to simplify our development, and Servlet / JSP comparison, after the introduction of the framework, productivity has really improved a lot, but with a long time, and found a new problem, that configuration tedious, error-prone, to do a new project, to build environment, build environment to build to go and that is a few lines of configuration, different projects, probably in different packages, most of the other configurations are the same.

Java always been criticized configured enormous amount of code cumbersome, and this is one of the performance. So how do? Spring Boot emerged, Spring Boot is Pivotal team in 2013 began the development of a new framework based on Spring, bloated in an attempt to simplify the configuration of Spring, Java developers more lightweight and fast, very active this framework, the government has also take seriously.

Spring Boot mainly provides the following functions:

  1. To provide a convenient entry experience for all of Spring-based Java development.
  2. Out of the box, with its own customized configuration is to use their own, not on the default official provided.
  3. It provides a common set of non-functional features, such as embedded server, security management, health monitoring and so on.
  4. Absolutely no code generation and does not require XML configuration.

Emergence of Spring Boot lets Java developers and return to simple, because indeed solve the pain points in development, so this technology has been very widely used, probably in early 2017, Spring Boot basically interview will ask, now popular Spring Cloud service is based on micro Spring Boot, therefore, all Java engineers have the necessary grasp Spring Boot.

Spring Boot from the process of birth, we can see:

  1. The Boot Spring not reinvent the wheel, but the whole out on the basis of the existing Spring Framework, which is cumbersome in the Spring simplified configuration.
  2. Spring Boot Spring reducing the threshold for the use of the family, the novice more approachable Spring Framework.

Since Spring Boot not reinvent the wheel, then Spring Boot learn not to skip SSM it? Listen to Song Ge analysis.

2. Do not skip to SSM

This is a lot of people ask me a question, my advice is: do not .

Spring Boot based on Spring, simple and easy to use, many people take it for granted skip SSM directly on Spring Boot. But when we have a closer look at automated configuration Spring Boot the condition notes, Java configuration and other things, it can not find much new stuff, Java configuration is Spring3 started to provide the conditions annotation is something in Spring, many, many, are Spring's in there, but these things shine in Spring Boot era.

In other words, even if you skip directly to the SSM learn Spring Boot, in fact, still learning things in Spring, that case, we might as well sit down and honestly go over the Spring.

After the development engineers in various fields will in fact face similar problems, learning some excellent package framework, there is no need to learn the underlying? Of course, it is necessary! Because the bottom of things can make you a deep understanding of your current use of this thing, it allows you to quickly get rid of the problem when things go wrong.

Actually, no matter what technology you want to engage in, should have a solid foundation of knowledge, these solid basics like fertile soil, can breed a variety of different technical direction of cattle, base master, and learn what frame faster. Today you skip directly SSM learn Spring Boot, if one day Spring Boot die, Pivotal team and based on the Spring framework out a new framework came out, then you are not going to go to school again? But if you start to master a variety of uses Spring, whether it is based on out out what kind of framework, you can quickly get started. Furthermore, if you are thoroughly studied in Spring AOP, Ioc / DI, you will find many similar framework, the core idea is that these things, then you learn outside the framework of the Spring, will be much easier.

If you are not familiar with SSM, you can reply in public numbers are backstage spring, springmvc, mybatisget dry Tutorial Song Ge hand to knock more than 50,000 words.

3. What should learn

So Spring Boot learn what things should learn it? I have here a list Advanced routes:

  1. The most basic, of course, Spring / SpringMVC related things.
  2. With the use of a variety of page templates, such as Jsp / Thymeleaf / Freemarker / Groovy Templates and so on.
  3. And the integration of a variety of SQL databases, as well as some common data persistence frameworks such JdbcTemplate, MyBatis, Jpa and so on.
  4. And integrating a variety of NoSQL databases such as Redis, MongoDB, Elasticsearch and so on.
  5. With security management-related knowledge, such as Spring Security, Shiro and so on.
  6. The use of cache, e.g. JCache, Ehcache like.
  7. And messaging middleware with integration, such as ActiveMQ, RabbitMQ, Kafka and so on.
  8. Data check / timer task / mailing and the like.
  9. Using a variety of surveillance.
  10. WebSocket is used in combination.
  11. Spring Cloud related components.
  12. ...

I listed above are just some of the more common technical points, each point technology can also extend a lot of other things, we can combine their own situation, one by one in order to learn, here also involves a lot of third party edge frameworks, such as Redis, MongoDB, RabbitMQ, etc., appear Spring Boot just let these components become more convenient when Spring family of products and integration, but does not simplify the usage of the original components, so the school Redis, the learn MongoDB, RabbitMQ, and so the school, or can not be less. With Redis, for example, learned Redis, learned to integrate Spring Redis, go back and look Spring Boot integrate Redis, it is simply too easy a ( we reply in public redis number backstage, there redis tutorial Song Ge hand knock ).

Of course, learning Spring Boot eventually we ran fast development services to micro and, therefore, like Docker, Spring Cloud technology, but also need to know what the.

4. learn how

Spring Boot to today, online information and books are now more and more. While watching the information to learn, we have to pay attention to the following points:

  1. To look at the source code. Unlike other new framework source code you could look ignorant, it is due Spring Boot Spring-based, so as long as you Spring solid foundation, see Spring Boot source code can be said that there is no pressure. If you do feel the pressure source Spring Boot, then you may not solid foundation Spring, this time may wish to put down Spring Boot, to review next Spring.
  2. Whenever learn Spring Boot in a knowledge point, we might think about how to use this feature in the Spring framework, how to configure, they get to know both sides, cross-checked, deepen the understanding of a knowledge point.
  3. A lot of attention to the development of Spring Boot. Unlike traditional framework may be updated once or twice a year, Spring Boot updated very frequently, every second update will bring some fun things, there may be a new API to join in, there may be an old API failure, changes, and therefore a lot of attention, avoid out of pit.

Finally, I gave everyone here a few resources are a few of my own constant concern.

4.1 Official Documents

Honestly, Spring Boot official document that all official documents I have contacted the most clarity easy to understand, we do develop, more or less contact with some third-party open platform, a lot of documentation platform is really not endure Tucao want to live, frames are made out in earnest to write a document it so difficult?

But the official documentation Spring Boot can be regarded as a very very friendly. Although it is in English, but in fact the English requirement is not high, liaison with a guess, in fact, it is easy to understand its meaning, I tend to doubt when knowledge point of a Spring Boot, the first choice is the official document, the current the latest edition of the official documentation address is:

Of course, if you are too slow official document open, Song Ge also help you download the latest version of a good pdf, public reply back number springboot2.2.4can be obtained.

4.2 Spring official blog

Every Spring or Spring Boot issued a new version, Song Ge will see what fun things about the new version, which adds content. I can not read through the source code and then summed it changes, it is generally how to get first-hand information on what authority? Spring attention to the official blog.

Spring opened the official website, there is an option in the top menu is the Blog, any update on plans to Spring family of products, update results, will be here to inform you.

Here Insert Picture Description

Song Ge also recommend for your attention to this Blog, on the one hand to be able to receive first-hand information in a timely manner, on the other hand can improve their English, do both. Stay home, a pot of tea, and makes the product a product of this site is really pretty good.

Blog address:

4.3 Chinese data

When it comes to Chinese data, I have to say Song Ge own online and offline tutorials pdf documents. Hand and struck the 274 tutorial, Spring Boot2 encompasses a variety of common usage, that is offline pdf for everyone to download, there are also online learning website, which is full of sincerity, no download pdf little friend not to miss.

Here Insert Picture Description

Online Tutorial Address:

Offline pdf download documents, reply springboot get Baidu network disk address in a public number background.

4.4 Case study

In addition to the text of these things, some of the online case is also crucial. Here I recommend two warehouses, two warehouses in all the cases are based on Spring Boot2 to do.

The first is the number of articles I have public support case:

GitHub Address:

Gitee Address:

The majority of cases are in the warehouse for Spring Boot, and there is a benefit that explain these cases has a corresponding article, each case corresponds to one article, not Miya.

Here Insert Picture Description

Another warehouse is my sort of fairly complete a warehouse, but did not explain the corresponding article:

GitHub Address:

Gitee Address:

5. Summary

Information expensive, not much, the key is to get involved to learn. College, some students are keen to collect all kinds of information, computer hard drives stuffed full, but it is not science, these data more to no avail.

Of course, if you are interested in personnel for micro Song Ge Vue own recorded Spring Boot + + + Spring Cloud video tutorials, you can take a look at this article: the Spring Vue + video tutorial celebrate the Boot finale, West Jiaotong University teacher turned out to be to set! .

Guess you like

Origin www.cnblogs.com/lenve/p/12356195.html