QueryForObject
-
Error - EmptyResultDataAccessExceptionWeb 2018. 8. 22. 16:36
Spring작업 중 페이지에 EmptyResultDataAccessException가 생겼다. QueryForObject는 1개만 뽑아 오는건데 EmptyResultDataAccessException이 생길 수 있다. QueryForObject를 사용할 때, try-catch를 이용한다. try { return this.jdbcTemplate.queryForObject( this.memberQueries.get(Query.SELECT_ONE_QUERY) , new Object[] {email} , new RowMapper() { @Override public MemberVO mapRow(ResultSet rs, int rowNum) throws SQLException { return BindData.bi..