Could not autowire. No beans of BookDao' type found

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

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

 

posted on 2023-04-16 19:32  打篮球的Curry  阅读(268)  评论(0编辑  收藏  举报