Spring Boot + MyBatis 쿼리 파라미터 자동 로깅 라이브러리 개발 후기 " mybatis-query-logger " 😘
·
인디해커
Spring Boot + MyBatis 쿼리 자동 로깅 라이브러리 개발기이번 포스팅에서는 내가 처음으로 만들어 본 오픈소스 라이브러리인 MyBatis Query Logger를 소개 하려고 한다. 실무에서 MyBatis를 사용하면서 쿼리와 파라미터를 로깅하는 데 번거로움을 느꼈고, 이를 해결하고자 인터셉터 기반의 로깅 도구를 직접 제작하게 되었다. 🤔 라이브러리 소개MyBatis Query Logger는 다음과 같은 기능을 제공한다:SQL 쿼리 자동 로깅바인딩된 파라미터 이름 및 값 출력실행 시간(ms) 측정 및 느린 쿼리(Slow Query) 감지SLF4J 또는 System.out.println 중 선택 가능Spring Boot 자동 설정 지원 설치 방법dependencies { implement..
[Request processing failed: org.springframework.jdbc.UncategorizedSQLException: Error attempting to get column '컬럼명' from result set. Cause: java.sql.SQLException: 부적합한 열 유형: getBLOB not implemented for class oracle.jdbc.driver.T4CLongRawAccessor 오류 해결 하
·
Develop/Trouble Shooting
[Request processing failed: org.mybatis.spring.MyBatisSystemException] with root causejava.sql.SQLException: 부적합한 열 유형: getBLOB not implemented for class oracle.jdbc.driver.T4CLongRawAccessor at oracle.jdbc.driver.GeneratedAccessor.getBLOB(GeneratedAccessor.java:1021) ~[ojdbc8-21.9.0.0.jar:21.9.0.0.0] at oracle.jdbc.driver.GeneratedStatement.getBLOB(GeneratedStatement.java:289) ~[ojdbc8-21.9.0.0..