【坑】mybatis resultType输出映射提示 找不到po类

出错代码mybatis

<select id="findUserById"  parameterType="int"   resultType="cn.po.User">//路径和类都正确
            select * from user where id=#{id}
</select>spa

报错提示翻译

大体翻译是 cn.po.User类 不正缺,或找不到select

纠正代码总结

<select id="findUserById"  parameterType="int"   resultType="cn.xx.mybatis.po.User">
            select * from user where id=#{id}
</select>co

暂时_问题总结:仅仅把包名加长,改为上面的。就不报了。background

暂时这么认为吧,之后知道缘由再写bat

相关文章
相关标签/搜索