您可以
@ComponentScan在主应用程序
epWeb中使用批注,以便在
epEntity项目中作为Bean(控制器,服务等)存在于项目中的Spring上下文类中进行注册。
@ComponentScan({"com.example.service", "com.example.controller"})另外,请确保
@Service在
epEntity项目中对Service实现进行注释。

您可以
@ComponentScan在主应用程序
epWeb中使用批注,以便在
epEntity项目中作为Bean(控制器,服务等)存在于项目中的Spring上下文类中进行注册。
@ComponentScan({"com.example.service", "com.example.controller"})另外,请确保
@Service在
epEntity项目中对Service实现进行注释。