STEP4-----> Add Spring's subproject to the project Spring IO Platform-------> Add related Framework via MAVEN (Pom.xml)

Source: Internet
Author: User

Purpose of adding spring IO platform:

Avoid the issue of versioning conflicts between your own project's external dependencies (external dependencies). For more details see: Spring IO Platform Overview

Specific procedures:

 Step1, add spring IO Platform to your project

      • Write the Pom.xml of project and add the following code to introduce the spring IO Platform
        <dependencymanagement>    <Dependencies>        <Dependency>            <groupId>Io.spring.platform</groupId>            <Artifactid>Platform-bom</Artifactid>            <version>Athens-sr1</version>            <type>Pom</type>            <Scope>Import</Scope>        </Dependency>    </Dependencies></dependencymanagement>    

  Step2, using spring IO Platform

        • Once the spring IO platform is introduced, the external dependencies can be introduced to project later without having to external dependencies version. For example, to introduce Spring-core this external dependency, simply write the pom.xml as follows, without filling in the values of the <version> tag

        • Note that without the introduction of spring IO Platform, if you follow the configuration Pom.xml,maven automatically find the latest version of Spring-core integrated into your project, but with the introduction of Spring IO Platform, MAVEN will integrate the corresponding version of Spring-core defined in the Spring IO platform table into your project, regardless of the number of available versions of Spring-core, what the latest version is, and Maven will ignore it. It will only follow the version defined in the Spring IO platform table to build your project

      

STEP4-----> Add Spring's subproject to the project Spring IO Platform-------> Add related Framework via MAVEN (Pom.xml)

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.