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>


版权声明:本文为weberhuangxingbo原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。