Introduction to Spring IO Platform

Source: Internet
Author: User

Prerequisites: Familiar with spring basics.Introduction: Spring IO platform integrates the core spring APIs into a single platform. It provides a large number of projects in spring portfolio and the versions they depend on. --After testing, the work is intact. In addition, Spring IO Platform is based on spring Boot. Platform-reference.pdf

http://docs.spring.io/platform/docs/current/reference/html/getting-started-using-spring-io-platform.html# Getting-started-using-spring-io-platform-maven

The Spring IO platform contains the base layer module and the execution layer domain dedicated runtime (DSRs). The base layer module includes the core spring module and the associated third-party dependencies-ensuring there is no conflict. The Dsrs provided by the executive layer simplifies build production-ready, JVM-based work.the first version of Spring IO contains two dsrs:spring Boot and Grails. Spring IO, in essence, is a library file in Classpath! Iv. need to be used with Maven or Gradle. Platform uses the dependency management in Maven to provide a dependent version. There are two ways to use:
①import platform Pom into your application's pom. ② the platform as the parent.
Note that the second method also inherits some Plugin management, such as Spring Boot's Maven Plugin.        Of course, you need to explicitly include them in your Pom, as follows: In addition, you can customize the desired version by platform as the parent. If you want to use platform with spring boot, then you don't need to platform as the parent. You can use the first method and then manually configure additional parameters.     See http://docs.spring.io/spring-boot/docs/1.3.7.RELEASE/reference/htmlsingle/#using-boot-maven. Note that no matter which method you choose,are not actively adding dependent jars。 Or you need to take the initiative to declare, but no longer need to declare the version. as follows: In addition, if you want to know the specific content and version of platform, see http://docs.spring.io/platform/docs/current/reference/html/ Appendix-dependency-versions.html. V. Cover dependency Management in spring IO platform. Both the spring IO Platform BOM and the spring Boot BOM use <properties/> to define a managed dependent version. So, you can use <properties/> to overwrite the version of it-perhaps you need to start by opening the spring IO Platform BOM and the spring Boot BOM for a look.
Because platform is based on boot and the boot boycott uses the Commons Logging, boot uses logback by default,---in the spring-boot-starter-logging module. Of course, boot also supports other logging frameworks, such as log4j and Log4j2. If you want to avoid Commons Logging and don't want to use spring-boot-starter-logging, then you can use SLF4J and its jcl-over-slf4j and use it with Logback or log4j2.SummaryThat's a summary, but I still don't know what the goods are for, and if it's a new spring project, Spring boot is good enough. It seems to take a few more times to really summarize.

Introduction to Spring IO Platform

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.