Spring Boot combat (Foreword)

Disclaimer: This article is Xu Chen original article, shall not be reproduced without my permission. https://blog.csdn.net/Mrxuchen/article/details/82348365

Java development of consistent long-term dependence of people criticized.

  • Java project to develop a high degree of complexity
  • Java project is very difficult to maintain
  • In the era of rapid deployment of cloud project and how quick start
  • Even with a lot of development frameworks and found that our development is also no less
  • When everyone thought spring, when no longer advancing, spring launched a micro-architecture to achieve two important frameworks Spring Boot, Spring Cloud

1.Java development complexity is always the most?
In all of the software industry which, if say the commercial system, in the first place is always Java, because Java's rich system that supports high, high security, but all of our Java developers have had to endure following pain

  • Which provides support for Java development belong to the native operating code, for example jdbc, if you use Java native code will write a lot of duplicate content, such as PreparedStatement operation.
  • When Java for WEB project development, must be created WEB projects according to strict style, and whenever modify WEB procedures, we need to restart the Tomcat
  • Among Although Java while providing a so-called development standards, but almost all companies have their own standards, such as the JVM there are three standard, and many companies due to the different versions can cause different deployment environments
  • Java inside strict accordance with the requirements of design patterns MVC.
  • To WEB development as an example, a good JSP program code which should not contain any script code, but in order to do this step is very troublesome, there are various implementations of the standard. For example: JSTL + EL, SpringTaglib, Strutstag, JSF;
  • If you now use Node.js, python program to develop a controller class might need only a few lines of code, and Java to develop such a program, you need to write a bunch of code, but also called out deployment.

In summary, Java me feel the most straightforward word - trouble. If re serious point is complex, complicated.

Development 2.Java late Maven uses a lot of technology development, after using Maven I found among the traditional development process and not flee to the traditional Web presence, all the items still to be packaged into a war file and then uploaded to the system being. Using Maven one of the biggest pain, if it is development framework, a bunch of configuration dependencies enough for all beginners crash.

3.rest technology has been widely circulated in the industry, and in order to achieve development Rest Java architecture (based on Spring), is quite troublesome.

4. Among the industry now, Spring has become the absolute Java architecture, however, to integrate RabbitMQ, KafKa, Mysql, Druid, Redis, Shiro in the spring, I need to write piles of * .xml file;

Spring Boot appears, changing all the plight of java development, ultimately pursuing the aim Spring Boot, do away with all the complex development, do away with all the configuration files, allowing developers to become more simple and pure. Core: Zero Configuration (this is a dream).

Spring Boot reason Huobian the world, is because a lot of notes Spring Boot used in or provided by Spring, and this gives all developers to adapt to almost zero over-complete.

Spring Boot of birth defects : Requirements for the development of relatively high, if you do not Maven, SSM integrated development, use very difficult.

Spring Boot net effect is a simplified to the extreme WEB development, WEB development involves long, it is absolutely impossible to lack of data layer operation, all the developers have certainly uphold the principles of MVC design patterns, MVC essential inside the business layer, data layer always bind together with the business layer, data layer operation to be performed, then the choice Mybatis, because Mybatis integration process, especially after the Spring integration which can be written off to avoid direct Dao layer, while VO class is the most clean, it It is definitely more convenient than other ORMapping components.

Guess you like

Origin blog.csdn.net/Mrxuchen/article/details/82348365