Home > Java > javaTutorial > body text

How to develop springboot multi-module and use dependencyManagement management

PHPz
Release: 2023-05-16 17:10:06
forward
1466 people have browsed it

When we create a new springboot project, there will be a parent in pom.

    <parent>
        <groupid>org.springframework.boot</groupid>
        <artifactid>spring-boot-starter-parent</artifactid>
        <version>2.4.2</version>
        <relativepath></relativepath> <!-- lookup parent from repository -->
    </parent>
Copy after login
This method is often used in multi-module development. Use dependencyManagement. Its type is pom and its scope is import. This type of dependency can only be declared in the dependencyManagement tag, and then dependency is used in submodules. Just quote. And in this way, you can use whichever module you need, without citing it. Not all will be imported.

Click: spring-boot-starter-parent and you will find that there is another parent in it, and this parent is exactly the same as the one we imported above

Eventually it will be in spring-boot-dependenciesHow to develop springboot multi-module and use dependencyManagement management

The above is the detailed content of How to develop springboot multi-module and use dependencyManagement management. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:yisu.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template