问题如图:
解决方法:
一:用注解 @Resource代替@Autowired
二:在dao层添加注解@Component或者@Repository
springboot无法通过 @Autowired注解生成dao、service对象问题解决
最新推荐文章于 2023-03-17 13:43:43 发布
问题如图:
解决方法:
一:用注解 @Resource代替@Autowired
二:在dao层添加注解@Component或者@Repository