Spring boot集成Spring-data-Jpa中遇到的问题

1.创建项目启动报错 Field adminDao in com.cj.service.AdminService required a bean of type ‘com.cj.mapper.AdminDao’ that could not be found. 错误原因是启动类扫不到dao层的注解,所以在启动类上扫描的路径就可以了
相关文章
相关标签/搜索