在用springBoot做开发的启动项目的时候出现如下异常:
APPLICATION FAILED TO START
Description:
Field commentDao in com.sse.house.biz.service.CommentService required a bean of type ‘com.sse.house.biz.dao.CommentDao’ that could not be found.
Action:
Consider defining a bean of type ‘com.sse.house.biz.dao.CommentDao’ in your configuration.
我是实现类,service没加注解 加上@Service 就可以,接口的service也加上@Service,还有网上说的dao层加上@Mapper,启动成功
来至https://blog.csdn.net/pengge0727/article/details/82377576的参考