谷粒学院2day [email protected]报错

看的尚学堂视频的谷粒学院

原因:未知
解决:多加一级目录

报错
@ComponentScan(basePackages = {“com.he”})
原图:
谷粒学院2day [email protected]报错

解决:@ComponentScan(basePackages = {“com.he.config”})
原图:谷粒学院2day [email protected]报错

===========================================================
后续:本人菜鸟后来又想了想,他说是有冗余,可能是因为两级包已经扫描到main方法了,所以不扫了,所以我为了避免坑,以后直接写三级目录了55555

谷粒学院2day [email protected]报错