
您可以
@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实现进行注释。
欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)