쿼리 시간 초과를 구현하고 싶습니다. 응용 프로그램 프레임 워크는 , 스프링 MVC 및 최대 절전 모드으로 구성됩니다.Postgres로 쿼리 실행 시간 초과 8.4
세션 공장에서 시간 초과를 지정하는 경우. PostgreSQL 드라이버에 Timeout이 으로 구현되지 않았습니다.
내가 사용하고 포스트 그레스 8.4
코드는 다음과 같습니다
@Override
@Transactional(timeout=20)
public List<MasterBooking> searchMasterBookings(---){//some more code}
오류 스택 추적은 다음과 같습니다
SQL state [0A000]; error code [0];Method org.postgresql.jdbc4.Jdbc4PreparedStatement.setQueryTimeout(int) is not yet implemented.; nested exception is org.postgresql.util.PSQLException: Method org.postgresql.jdbc4.Jdbc4PreparedStatement.setQueryTimeout(int) is not yet implemented.
어떻게이를 구현 할 수 있습니까?
일부 코드/파일 스 니펫이 도움이 될 것으로 생각됩니다. –