Mybatis 错题集

阅读 60

2022-02-23

1、"mapper" 的内容必须匹配 "(cache-ref|cache|resultMap*|parameterMap*|sql*|insert*|update*|delete*|select*)+"

查看Mapper.xml中是否有 /**/这种注释 是否有 Student s = new Student()这类代码

2、Cause: org.apache.ibatis.ognl.OgnlException: source is null for getProperty(null, "specialName")

查看Mapper.java接口参数传到Mapper.xml取值是否存在

精彩评论(0)

0 0 举报