Backend/Mysql
MySQL 8.0 이상 사용시 주의사항
saintclair
2024. 6. 3. 18:04
콘솔창에서 이런 문구를 만날 수 있는데 8.0 이상 버전의 MySQL 사용시 기존 클래스가 변경되었기 때문에 수정하라는 내용이다.
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.
해결 : root-context.xml 파일에서 'com.mysql.cj.jdbc.Driver'로 수정해주면 된다.
* 당연하지만 여기서 user name과 user password에는 본인이 초기설정한 값을 넣어줘야 한다.