学无先后,达者为师

网站首页 编程语言 正文

出现Logging initialized using ‘class org.apache.ibatis.logging.stdout.StdOutImpl‘ adapter的解决方法

作者:码农研究僧 更新时间: 2022-01-12 编程语言

出现如下提示Logging initialized using 'class org.apache.ibatis.logging.stdout.StdOutImpl' adapter
以及下方很多红色的bug

Logging initialized using 'class org.apache.ibatis.logging.stdout.StdOutImpl' adapter.
07-Jan-2022 10:19:51.236 涓ラ噸 [RMI TCP Connection(3)-127.0.0.1] org.mybatis.spring.mapper.MapperFactoryBean.checkDaoConfig Error while adding the mapper 'interface com.manongyanjiuseng.mapper.ProductInfoMapper' to configuration.
	org.apache.ibatis.builder.BuilderException: Error parsing Mapper XML. The XML location is 'com/manongyanjiuseng/mapper/ProductInfoMapper.xml'. Cause: org.apache.ibatis.builder.BuilderException: Error resolving class. Cause: org.apache.ibatis.type.TypeException: Could not resolve type alias 'com.manongyanjiuseng.pojo.vo.ProductInfoVo'.  Cause: java.lang.ClassNotFoundException: Cannot find class: com.manongyanjiuseng.pojo.vo.ProductInfoVo

截图如下:
在这里插入图片描述

查找其更本原因,需要在bug中找到答案所在

一般是mybatis的存放的sql的xml文件出了问题

但是一个个找过于麻烦,可通过bug的提示进行查找
可发现上面中提示Cannot find class: com.manongyanjiuseng.pojo.vo.ProductInfoVo
说明是xml的内部中全限定名称找不到,导致路径找不到

在这里插入图片描述
修改成正确的路径即可

其他的原因比如有id等关键字写错以及某些关键字像jdbcType写错

报错信息如下:


原文链接:https://blog.csdn.net/weixin_47872288/article/details/122360236

栏目分类
最近更新