Springboot multi-module development and use of dependencyManagement management method
Today, I would like to share with you the relevant knowledge points of springboot multi-module development and the use of dependencyManagement management methods, detailed content, clear logic, I believe that most people still know too much about this knowledge, so share this article for your reference, I hope you can get something after reading this article, let's take a look at it.
When we create a new springboot project, there will be a parent in the pom.xml
Org.springframework.boot spring-boot-starter-parent 2.4.2
This is one of our common ones. In fact, there is another way to use it. Please refer to the official documentation.
Org.springframework.boot spring-boot-dependencies 2.4.4 pom import
This approach is often used in multi-module development, using dependencyManagement, its type is pom,scope is import, this type of dependency can only be declared in the dependencyManagement tag, and then use dependency references in sub-modules. And this can be done so that you can use whatever module you need without having to refer to it. Not all will be imported.
Click: spring-boot-starter-parent will find that there is another parent in it, and this parent is exactly the same as the import one above us.
Will eventually be in spring-boot-dependencies.
These are all the contents of this article entitled "springboot Multi-module Development and using dependencyManagement Management methods". Thank you for reading! I believe you will gain a lot after reading this article. The editor will update different knowledge for you every day. If you want to learn more knowledge, please pay attention to the industry information channel.