There is no getter for property named 'XXX' in 'class java.lang.String'解决方法

    <select id="ProjectHomePage" parameterType="string" resultType="java.util.HashMap">
        SELECT 字段1,字段2,字段3  FROM 表名
                <where>
                1=1
                <if test="_parameter != null">
                    and type=#{type}
                </if>
                    and delstate=1
                </where>
    </select>
把 #{XXXX}改为  _parameter != null
原文地址:https://www.cnblogs.com/yanchaohui/p/10477077.html