spring - MapperScan 运行良好,但想法显示为错误
问题描述
应用
@SpringBootApplication
@MapperScan("com.xxx.mapper")
public class xxxApplication {
}
用户服务实现
@Service
@Slf4j
public class UserServiceImpl extends ServiceImpl<UserMapper, User>
implements UserService {
@Autowired
UserMapper userMapper; \\Idea Show Error Here: Could not autowire. No beans of 'UserDeviceMapper' type found.
}
用户映射器
//Without @Repository
public interface UserMapper extends BaseMapper<User> {
是想法的错误还是错误的使用
解决方案
推荐阅读
- unity3d - Unity - 如何按百分比更改圆环网格的材料?
- python - 带有 os.system() 调用的 echo 命令选项
- string - golang 中的 []int 转为 []string 一行
- git - 无法在 git 尝试推送未跟踪目录的情况下更改 git(企业)远程 url
- c# - 使用 DataTemplateSelector 绑定到 DataTemplate 中的枚举描述的多语言组合框
- graphics - Rstudio/markdown/Word:tiff 数字没有大小选项?
- java - 从 Android Vision 识别条形码和文本后,如何开始新活动?
- dart - Flutter如何将十六进制字符串转换为二进制字符串?
- django - 创建一个 docker 镜像来搭建 django 项目
- clojure - 为什么 ASeq 需要一个集合来实现 Sequential 以允许等价?