spring boot 설정 파일에 아래와 같이 추가하였더니 warn 문구가 아래와 같이 로그에 출력되었다.
해결 방법은 'com.mysql.cj.jdbc.Driver'로 변경하면 사라진다.
원인은 아래의 url에서 기술되어 있다.
spring.datasource.driver-class-name=com.mysql.jdbc.Driver
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.
MySQL Connector/J 5.1 Developer Guide
The name of the class that implements java.sql.Driver in MySQL Connector/J is com.mysql.jdbc.Driver.
참조 : https://dev.mysql.com/doc/connector-j/5.1/en/connector-j-reference-class-name.html
MySQL Connector/J 8.0 Developer Guide
The name of the class that implements java.sql.Driver in MySQL Connector/J is com.mysql.cj.jdbc.Driver.
참조 : https://dev.mysql.com/doc/connector-j/8.0/en/connector-j-reference-driver-name.html
https://dev.mysql.com/doc/connector-j/8.0/en/connector-j-versions.html
'mysql' 카테고리의 다른 글
window 10에 mysql 설치하기 (0) | 2022.02.19 |
---|---|
Mysql Schema 생성 Charset/Collation (0) | 2021.04.25 |
Mysql 데이터 타입 (0) | 2019.01.13 |