首页 > 其他分享 >提示错误:Could not autowire. No beans of ‘Person‘ type found.

提示错误:Could not autowire. No beans of ‘Person‘ type found.

时间:2023-01-05 14:33:31浏览次数:36  
标签:autowire No Could Person beans type

 

SpringBoot的启动类要放到根目录下,刚开始建项目的时候,IDEA自动把启动类放到了main/java/com.xxx.项目名这个包下如图:

 

标签:autowire,No,Could,Person,beans,type
From: https://www.cnblogs.com/gjh2023/p/17027457.html

相关文章