日本免费高清视频-国产福利视频导航-黄色在线播放国产-天天操天天操天天操天天操|www.shdianci.com

學無先后,達者為師

網站首頁 編程語言 正文

出現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

欄目分類
最近更新