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>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-dependencies
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!