org.apache.ibatis.reflection.ReflectionException: There is no getter for property named 'userId' in 'class java.lang.String'
<update id="쿼리아이디" parameterType="java.lang.String">
UPDATE ~~~
SET ~~~
WHERE 1=1
<if test="@org.apache.commons.lang.StringUtils@isNotEmpty(usid)">
and usid = #{usid}
</if>
</update>
<if test="@org.apache.commons.lang.StringUtils@isNotEmpty(usid)">
방식으로 null 체크https://bcdragonfly.tistory.com/10
동적쿼리의 if문은 파라미터타입클래스(String)의 getter를 호출하는 방식
String 내부에는 getter 개념이 정의되어 있지 않아서 발생
<update id="쿼리아이디" parameterType="java.lang.String">
UPDATE ~~~
SET ~~~
WHERE 1=1
<if test="value != null and value != ''">
and usid = #{value}
</if>
</update>