Could not autowire. No beans of BookDao' type found

发布时间 2023-04-16 19:37:53作者: 打篮球的Curry

在做Spring或者SpringBoot项目时,在测试类中创建一个实体类属性并进行自动装配时,回报红:Could not autowire. No beans of BookDao' type found(只是环境的原因,不是错误)

 直接Alt + Enter,将错误改成警告即可