mybatis学习更新中+

【1】错误合集

  1、Error parsing SQL Mapper Configuration. Cause: java.io.IOException: Could no
  解决:resource对应xml文件,class属性指定被注解的dao全限定类名
  
  <!--<mappers>
    <mapper resource="com/wyp/dao/IUserDao.xml"/>
 </mappers>-->
 <mappers>
    <mapper class="com.wyp.dao.IUserDao"/>
 </mappers>
    
  参考博客:https://www.pianshen.com/article/4297998886/

  2、A query was run and no Result Maps were found for the Mapped Statement 'com.
  解决:mybatis中的所有查询,都必须返回resultType或者resultMap的值

  参考博客:https://blog.csdn.net/u013399093/article/details/53087469

  3、The server time zone value '�й���׼ʱ��'
  解决:url中添加serverTimezone=UTC
  参考博客:https://blog.csdn.net/qq_36470898/article/details/96321989

2、

  主配置文件信息
  SqlMapConfig.xml

  注解的方式

  xml文件

posted @ 2021-01-08 10:16  五字妹妹实在是棒  阅读(47)  评论(0)    收藏  举报
返回顶部