The Springboot project starts normally, but the access interface reports 404

When the springboot project is split in a monolithic application, the location of the startup class is correct, and the springboot project starts normally.
The problem is that the access interface reports 404, and the demo can be passed normally by writing the demo. The only difference is , Startup class added:
@componentScanScan package annotation

Our project is split into multiple modules, and what I'm starting to scan is the solution for the sibling module package
Insert picture description here
:

Re-architecture-the most trivial solution

Published 475 original articles · Like 16 · Visits 30,000+

Guess you like

Origin blog.csdn.net/qq_32370913/article/details/105560074