SpringBoot past lives

  springboot

Order

This article mainly tells the origin of spring boot, namely the background, original intention, present situation and the prospect of the future of other births.

Background

In a very early age, J2EE was still the king standard for java enterprise applications, and EJB was popular. Later, a musicologist named Rod Johnson wrote the book Expert One on one J2EE without EJB, invented spring and founded interface21, bringing a spring breeze to Java’s enterprise development. After that Spring went on a rampage, following the rise of the Internet, occupying the king’s position of lightweight development in Java. With the development of Java language, Spring has also introduced new things. For example, Spring3 supports Java annotation configuration, Spring4 supports java8, and springboot is also introduced.

Original intention

The original intention of launching springboot is to simplify the configuration of spring, make the integration of new functions in development faster, and simplify or reduce the related configuration.

Status quo

The latest version of springboot is 1.3.2-SNAPSHOT. The main functions are as follows:

  • Automatic configuration (auto-configuration)
    A function to simplify configuration, for example, if spring security jar package is found in classpath, related bean will be automatically created, etc.

  • starters(Simplify dependency)
    This is relatively key, which facilitates spring to integrate various components, such as redis, mongodb, etc.

    • core(security、aop)

    • web(web、websocket、ws、vaadin、rest、mobile)

    • template(freemarker、velocity、groovy templates、thymeleaf)

    • data(jdbc、jpa、mongodb、redis、gemfire、solr、elasticsearch)

    • database(h2、hsqldb、mysql、postgresql)

    • social(facebook、linkedin、twitter)

    • io(batch、integration、jms、amqp)

    • ops(actuator、remote shell)

  • CLI(command-line interface), supporting groovy development

  • Actuator(Self-examination of the application system itself)
    This smacks of devops, making the application itself introspective, such as checking how many threads the system is running, gc status, basic running parameters, etc.

Outlook

With the rise of devops and the popularity of docker technology, micro-services will become more and more popular in certain occasions. Even without micro-services, springboot, which can directly embed web servers into a jar package, is more in line with the trend of devops: making a jar package and throwing it on the server is very convenient. With its own actuator, Spring Boot saves more than half of the monitoring, and it can really spend its energy on the blade.