Spring boot does not enforce the use of special dependencies. But it provides some very efficient dependencies. Among them are the following:
Spring-boot-starter-parent
Sprin
to create an executable jar, we need to add spring-boot-maven-plugin to our pom.xml . To do this, dependencies Insert the following lines directly below the section : 1 2 3 4 5 6 7 8 not everyone likes to go from spring-boot
There are two ways of integrating springboot.1 Direct Parent Project point to Springboot This is handy, and the default jar is complete.2 Using Spring-boot-dependencieThis default-typed jar package is incomplete. cannot be run directly.Add the following configuration to it. The second kind of trouble, but we can use our own parent class.Spring-boot-
Tags: depend hub star End CTO MyBatis ICA nbsp hrefSpringboot MyBatis Configuring multiple data sources, error: There is a circular dependency between 7 beans in the application context:xxxAfter checking, this is mybatis-spring bug, delay loading problem: HTTPS://GITHUB.COM/MYBATIS/SPRING/ISSUES/58The version combination of the issue recurrence is:Spring-boot-sta
to choose an optimal version to ensure maximum expansion.What dependencies are maintained?Spring IO Platform maintains a lot of dependencies, picking out some common (see the official website for more details), as shown in the following table:
Group
Artifact
Version
Org.springframework.boot
bootmaven dependencies to pom.xml files
(3) Write startup class
(4) Running the program
1.2Hello of New
This step is very simple, compared to all of us, small in order to document the integrity of a brief description:
Start by using the IDE (ECLIPSE,MYECLIPSE) tool to create a new MAVEN project, either Maven Javaproject, or Maven Web project, to name a project. I am using MyEclipse, the project name is Spring
that it includes not only the dependencies in spring Boot Starter Poms, but also the various dependencies of Spring cloud.
Click Next to enter the last few details about the physical storage of the project. Finally, click Finish to complete the construction of the
; Language You can choose: Java, Groovy, Kotlin.
Click Next to go to the Select Spring boot version and the Dependency Management window. Our concern here is that it includes not only the dependencies in spring Boot Starter Poms, but also the various
parent method, the scope and type settings are required - - Dependency> - groupId>Org.springframework.bootgroupId> - Artifactid>Spring-boot-dependenciesArtifactid> - version>2.0.2.RELEASEversion> in Scope>ImportScope> - type>Pomtype> to Dependency> + - the Dependency> * groupId>Org.springframework.bootgroupId>
, and is registered with the Admin server via HTTP or using Eureka, and the Spring Boot Admin UI section uses ANGULARJS to present the data to the front end.Spring Boot Admin is a monitoring tool for UI beautification encapsulation of the actuator interface for Spring-boot.
features of Spring boot
Spring projects that can be run independently: Spring boot can run independently as a jar package.
inline servlet container: Spring boot can choose t
classes to aid in the testing of the application. The Spring test suite uses a large number of these mock classes, which makes testing easier. Simulating the HttpServletRequest and HttpServletResponse classes is convenient for Web application unit testing. And it provides support for JUnit.Externally dependent Spring-core.25.spring-aspects.jarProvides support fo
/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.0modelversion> groupId>Com.lclc.bootgroupId> Artifactid>Boot-cacheArtifactid> version>0.0.1-snapshotversion> Inherit defaults from Spring Boot - Parent> Spring
Many people are using spring to develop Java projects, but when configuring Maven dependencies, it is not clear which spring jars to configure, often adding a bunch of random, compiling or running an error to continue configuring Jar dependencies, causing spring to rely on c
First, Spring boot advantages
Tips for easier use and rapid development of spring development
With out-of-the-box default configuration features that can be configured automatically based on project dependencies
A more powerful service system, including embedded services, security, performance indicato
configuration in spring IO platform.Spring-related BOMsOf course SpringSource in order to resolve these jar conflicts, the introduction of a variety of BOM, of course, the most famous is the spring platform Io BOM, the core of the three are: Spring-framework-bom, Spring-boot
entrypoint
This is done by adding Docker dependencies to the Spring Boot project.
Build a packaged environmentWe need a Docker environment to package the Spring Boot project, and it's a hassle to build a docker environment in Windows, so here's the Cento
Eclipse + Maven plugin. New Maven project in EclipseCreate a simple project, new maven, maven---project2. Modifying the Pom fileModify the Pom file to add the following: parent> groupId>Org.springframework.bootgroupId> artifactid>Spring-boot-starter-parentartifactid> version>1.3.6.RELEASEversion> relativepath /> -- Parent> properties> project.build.sourceEncodin
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.