项目场景:
MyBatis异常
Cause: org.apache.ibatis.builder.BuilderException: Error resolving class. Cause: org.apache.ibatis.type.TypeException: Could not resolve type alias ‘AdminVo’.
问题描述
Cause: org.apache.ibatis.builder.BuilderException: Error resolving class. Cause: org.apache.ibatis.type.TypeException: Could not resolve type alias ‘AdminVo’.
![在这里插入图片描述](https://i-blog.csdnimg.cn/blog_migrate/4ce4db979cabc78765bbfb461977f65f.png)
解决方案:
在项目的.xml配置文件中添加:
<typeAliases>
<package name="com.luchao.bean"/>
</typeAliases>