| ylbtech-Miscellaneous-java:spring Boot |
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.
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.
0, HTTPS://SPRING.IO/GUIDES/GS/SPRING-BOOT/1, Https://baike.baidu.com/item/Spring%20Boot2,
|
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