parameter type string1 [MyBatis] parameter type string if문 사용법 MyBatis문에서 parameter type string시에 해당 if문을 잘못사용하면 에러가 발생한다. [오류난 코드] SELECT * FROM 테이블명 //test아이디일 경우 WHERE 컬럼명 = #{id} org.apache.ibatis.reflection.ReflectionException:There is no getter for property named 'id' in 'class java.lang.String' 해당 String getter값이 없다고 한다. mybatis에서 Vo를 사용한게 아니라면 value 값으로 확인해야한다. 하지만 2024. 1. 15. 이전 1 다음 728x90