mybatis 错误The entity name must immediately follow the '&' in the entity reference

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>

猜你喜欢

转载自blog.csdn.net/weberhuangxingbo/article/details/86657293