mybatis mapper.xml文件中配置提示如下错误:
The entity name must immediately follow the '&' in the entity reference
将 “&” 换为 "and" 操作符即可。
例如:<if test="dbName!=null && dbName!=''">
<bind name="pattern" value="'%' + dbName + '%'" />
and lower(dd.flname) like #{pattern}
</if>
改成:<if test="dbName!=null and dbName!=''">
<bind name="pattern" value="'%' + dbName + '%'" />
and lower(dd.flname) like #{pattern}
</if>
更多推荐
mybatis 错误The entity name must immediately follow the '&' in the
发布评论