SpringBoot报错:Could not autowire. No beans of ‘DiscussantMapper‘ type found
最新推荐文章于 2024-04-27 09:22:45 发布
本文介绍了SpringBoot在启动时遇到'Could not autowire. No beans of 'DiscussantMapper' type found'错误的原因,并提供了解决方案。问题根源在于Dao层缺少@Repository注解。通过在相应的Mapper类上添加该注解,可以成功解决此类错误,确保SpringBoot应用正常启动。

1806

被折叠的 条评论
为什么被折叠?



