原文:Field userService in com.wuji.controller.UserController required a bean of type 'com.wuji.service.UserService' that could not be found

原因:说明IOC里没有创建Bean,在启动文件上手动添加: ComponentScan basePackages com.wuji 注解开启Spring组件扫描 ...

2019-01-02 19:16 0 5552 推荐指数:

查看详情

 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM