Keywords: Web multi-module
Using Eclipse's idiot-style configuration, Getting started with Web deployment is really not a habit.
First, the phenomenon:
The project was released, and the class in the dependent module could not be found anyway.
Second, the investigation
Determine that module out is added to the f4->artifacts->output layout
And then the egg ...
Third, Reason
Now you know, or you configure the out of the mess, the Web project's classes output to "project path/build", and the module's classes output to the project path/out.
It looks like the classes of the module was discarded when it was packaged.
Iv. Resolving
Let's standardize and find out what it feels like in eclipse.
1. Create a directory under Web-inf in the WebApp directory classes
2. Configure the Web project's classes file output to the above directory
3. The classes file of the configuration module is also output to the same directory (f4->modules-> module->paths-> select inherit project compile output path option)
V. Testing
Finally find the class that depends on the module project, pass.
Itellij Creating and publishing Web projects based on Gradle (iii)