Startup:Issues with Startup Dependency Errors
I. Scenario
The following error messages may appear during startup:
- The startup module contains JAR packages or modules that do not exist in the database.
- The startup module contains non-existent modules.
- The startup module's mutually exclusive modules include installed modules.
II. Troubleshooting Items
- Ensure that the modules listed in the
pamirs.boot.modules
configuration item of theapplication.yml
file for the startup project have their corresponding JAR packages depended on in thepom.xml
file. - Ensure that the path definitions in the
packagePrefix
method of the problematic module's definition file are correct. These paths can be multiple but must include all sub-project paths under the module, such asapi
sub-projects andcore
projects. Additionally, these paths should not overlap, intersect, or include paths from other modules (e.g., if module A usesaa.bb.cc
and module B usesaa.bb
, module B's path would include module A's). - The
@ComponentScan.basePackages
annotation in the startup class (a Spring-built annotation) must include the paths of all dependent modules. - When creating a code-free application, if a dependent module is configured but not locally installed, the module will encounter issues. Resolve this by either removing the dependency or adding the dependency to the code.