기록장

sqlSession.selectList 의 결과값이 주소값같이 나오는 경우 본문

인턴 기록/오류 정리

sqlSession.selectList 의 결과값이 주소값같이 나오는 경우

210_yy 2021. 4. 7. 09:46

내가 원한 결과값은 

 

dto - private int idx;
       private String writer;
       private String title;
        private String content;
       private String date;
       private String hit;

 

에 맞게 results 가 만들어지고 출력되는 거였는데 

 

이 그림처럼 주소값? 처럼 비슷하게 출력되어 테이블에 그려지지 않고 에러가 생기는 경우가 생겼다.. 

 

에러 : localhost:8080/getBoardList:1 Failed to load resource: the server responded with a status of 500 ()

 

한참을 헤매다가 발견한 이유 !!

 

DTO 자바 파일에서 @Getter, @Setter 어노테이션을 추가해주지 않았기 때문이었다 ㅠㅠ

 

 

 

꼭 추가 하세요 ,, 

 

 

 

 

이제 잘 들어온다 ^^

반응형
Comments