Miscellaneous-java:spring Boot

Source: Internet
Author: User

ylbtech-Miscellaneous-java:spring Boot

1. back to top
1. Spring boot is provided by the pivotal teamNew Framework, which is designed toto simplify the initial setup and development of new spring applications。 The framework uses aA specific way to configure, which enables developersyou no longer need to define a boilerplate configuration。 In this way, Spring boot is committed to the boomingRapid Application Development field(Rapid Application Development) become a leader. 2.
2. back to top
1. Features

1. Create a standalone spring application
2. embedded Tomcat, no need to deploy the war file
3. Simplify maven configuration
4. automatically configure Spring
5. Provide production -ready features such as indicators, health checks and external configurations
6. Absolutely no code generation and no configuration requirements for XML

Installation steps

In essence, Spring boot is a collection of libraries that can be used by any project's build system . For simplicity, the framework also provides a command-line interface that can be used to run and test the boot application . The release version of the framework, including the Integrated CLI (command line interface), can be downloaded and installed manually in the Spring warehouse . A simpler approach is to use the Groovy Environment Manager (Groovy Environment MANAGER,GVM), which handles the installation and management of the boot version. Boot and its CLI can be installed through the GVM command line GVM install Springboot. Install boot on OS X to use the Homebrew Package Manager . In order to complete the installation, first use the brew tap PIVOTAL/TAP to switch to the pivotal warehouse and then execute the Brew install springboot command .
The project to be packaged and distributed relies on building systems like maven or Gradle . To simplify the dependency graph, the boot function is modular , and many dependencies can be added to the project by importing the boot so-called "starter" module. To make it easier to manage dependent versions and use the default configuration, the framework provides a parent POMthat the project can inherit from.

<?XML version= "1.0" encoding= "UTF-8"?><Projectxmlns= "http://maven.apache.org/POM/4.0.0"Xmlns:xsi= "Http://www.w3.org/2001/XMLSchema-instance"xsi:schemalocation= "http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">  <modelversion>4.0.0</modelversion>  <groupId>Com.example</groupId>  <Artifactid>MyProject</Artifactid>  <version>1.0.0-snapshot</version>  <!--Inherit defaults from Spring Boot -  <Parent>    <groupId>Org.springframework.boot</groupId>    <Artifactid>Spring-boot-starter-parent</Artifactid>    <version>1.0.0.rc1</version>  </Parent>  <!--Add Typical dependencies for a Web application -  <Dependencies>    <Dependency>      <groupId>Org.springframework.boot</groupId>      <Artifactid>Spring-boot-starter-web</Artifactid>    </Dependency>    <Dependency>      <groupId>Org.springframework.boot</groupId>      <Artifactid>Spring-boot-starter-actuator</Artifactid>    </Dependency>  </Dependencies>  <repositories>    <Repository>      <ID>Spring-snapshots</ID>      <URL>Http://repo.spring.io/libs-snapshot</URL>    </Repository>  </repositories>  <pluginrepositories>    <pluginrepository>      <ID>Spring-snapshots</ID>      <URL>Http://repo.spring.io/libs-snapshot</URL>    </pluginrepository>  </pluginrepositories>  <Build>    <Plugins>      <plugin>        <groupId>Org.springframework.boot</groupId>        <Artifactid>Spring-boot-maven-plugin</Artifactid>      </plugin>    </Plugins>  </Build></Project>

2.

3. back to top
4. back to top
5. back to top
0, HTTPS://SPRING.IO/GUIDES/GS/SPRING-BOOT/1, Https://baike.baidu.com/item/Spring%20Boot2,
6. back to top
Ylbtech
Source: http://ylbtech.cnblogs.com/
This article is copyright to the author and the blog Park, Welcome to reprint, but without the consent of the author must retain this paragraph, and in the article page obvious location to the original link, otherwise reserves the right to pursue legal responsibility.

Miscellaneous-java:spring Boot

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.