[Error] There is no getter for property named

Yuri Lee·2021년 5월 11일
0

서론

org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.reflection.ReflectionException: There is no getter for property named 'x' in 'class y'

다음과 같은 에러가 발생했다. xml 의 #{변수} 안에 변수가 다른 변수와 마찬가지로 대소문자가 잘 맞춰져 있었는데 왜 에러가 발생하는지 알 수 없었다.

해결

알고보니 RequestVO에 해당 변수에 해당하는 string 컬럼이 없었다. RequestVO.java에 추가해주었더니 잘 동작했다.

결론

한번 더 확인하기!


https://aroundlena.tistory.com/17

profile
Step by step goes a long way ✨

0개의 댓글

Powered by GraphCDN, the GraphQL CDN