Get the App
SLTechnology News&Howtos  ›  Development  › 

How to build multi-module project with springboot

Shulou Source: shulou.com Published: 2022-06-03 06:17:46 11月17日 Update

This article introduces the relevant knowledge of "how to build a multi-module project with springboot". In the operation of actual cases, many people will encounter such a dilemma, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!

Master project creation

Create a normal springboot project, delete related folders and keep only pom files

Module creation

Version number unified control

Using tags, each referenced version of the life in the main project, but will not be imported

There is no need to declare a version when each sub-module type references all jar packages

Package specified entrance

The main project pom file needs to specify the entry class of the web project

Referencing a local external jar causes packaging failure

Use the pom.basedir variable to reference the external jar and package in the main project (not the web project) when packaged

Creating a maven project cannot add a class file or the configuration file does not recognize categories

This is the end of the content of "how to build a multi-module project with springboot". Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!

Tags: Project file module version project entry content more knowledge practical ordinary successful next size variable dilemma actual situation folder article Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Microsoft OPPO Reno Redmi Shulou Information Shulou Tech Info