에러 내용
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.
해결 방법
com.mysql.jdbc.Driver가 옛날 버전이기 때문에 com.mysql.cj.jdbc.Driver로 바꿔달라는 내용이다.
따라서 위와 같이 변경해주면 실행이 잘 된다.
'TIL' 카테고리의 다른 글
[Git Error] [rejected] master -> master (non-fast-forward) 해결 (0) | 2023.10.29 |
---|---|
[IntelliJ Error] Commit checks failed (Windows) (1) | 2023.10.25 |
[IntelliJ Warning] Lombok requires enabled annotation processing (Windows) (0) | 2023.10.25 |
[스프링] gradlew build Failed 해결 (0) | 2023.05.12 |
[스프링] JAVA_HOME ERROR (0) | 2023.05.12 |