Description:
Field resource in com.imooc.controller.HelloContoller required a bean of type 'com.imocc.pojo.Resource' that could not be found.
Action:
Consider defining a bean of type 'com.imocc.pojo.Resource' in your configuration.
在你的主程序前面加上:
@ComponentScan(basePackages= {"com.*"})
意思是扫描com.*包下所有类 若解决,请采纳谢谢。
启动类放到最外边
完全是视频里的代码结果跑不起来,服了