Dependence of spring boot
Spring boot, though, does not force the use of special dependencies. But it provides some very efficient dependencies. The most important of these are:
spring-boot-starter-parent org.springframework.boot spring-boot-starter-parent 2.0.0.RELEASE
spring-boot-starter-parent This is a dependency manager pom file. Its role is to manage all the dependencies required by boot, so as to unify the version numbers of various jars and avoid problems caused by inconsistent versions. Therefore, introducing other dependencies omits the version number. Of course, you can also add a specified version number instead of the default.
spring-cloud-dependencies
org.springframework.cloud spring-cloud-dependencies ${spring-cloud.version} pom import
Spring-cloud-dependencies is also a dependency manager's pom file, the same function as spring-boot-starter-parent, except that spring-cloud-dependencies is a dependency management for cloud. e.g. spring-cloud-starter-config, spring-cloud-starter-netflix-eureka-server
spring-boot-starter-web
org.springframework.boot spring-boot-starter-web
Spring-boot-starter-web automatically embeds the tomcat container. Springboot is also automatically configured based on dependency in classpath. For example: spring-boot-starter-web will automatically assemble tomcat container; and will automatically read the web application configuration from application.properties, such as: server.port. If application.properties does not configure related parameters, the default configuration information will be used, such as: 8080.
Spring-boot-starter-data-jpa Dependency of database connections. org.springframework.boot spring-boot-starter-data-jpa
Spring-boot-starter-data-jpa Dependency of database connections.
spring-cloud-config-server
org.springframework.cloud spring-cloud-config-server
spring-cloud-config-server configuration center;
spring-cloud-starter-netflix-eureka-server org.springframework.cloud spring-cloud-starter-netflix-eureka-server
Spring-cloud-starter-netflix-eureka-server registry. It is the core architecture of Spring Cloud.
Description: Spring boot provides a series of spring-boot-starter-and spring-cloud-starter-dependencies, which are actually the integration of related function dependencies, that is, introducing a start dependency, introducing multiple corresponding jars. It should also be noted that the starters provided by spring boot all start with spring-boot-starter-and spring-cloud-starter-. If you want to customize the starter, the naming format should be: *-spring-boot-starter.