net.sf.log4jdbc.sql.jdbcapi.DriverSpy
를 사용하는 경우 다음과 같은 메시지가 출력된다.
Loading class `com.mysql.jdbc.Driver'. This is deprecated. The new driver class is `com.mysql.cj.jdbc.Driver'. The driver is automatically registered via the SPI and manual loading of the driver class is generally unnecessary.아마도
custom.spring.datasource.hikari.driver-class-name=com.mysql.cj.jdbc.Driver
대신
custom.spring.datasource.hikari.driver-class-name=net.sf.log4jdbc.sql.jdbcapi.DriverSpy
를 사용할 경우
net.sf.log4jdbc.sql.jdbcapi.DriverSpy
는 내부적으로 com.mysql.jdbc.Driver를 사용하나보다.
'Java > Spring' 카테고리의 다른 글
| [Spring data JPA] 조회: Entity + 연관 Entity(LAZY) + Pageable (0) | 2021.04.24 | 
|---|---|
| [Spring data JPA] native query + XML + DTO (0) | 2021.04.24 | 
| JPA 씹어먹기 (0) | 2021.04.19 | 
| springBoot2 jpa Test Errors (1) | 2021.04.05 | 
| Memory usage is low, parachute is non existent, your system may start failing (0) | 2017.10.25 | 
 
                    
                  