콘솔창에서 이런 문구를 만날 수 있는데 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에는 본인이 초기설정한 값을 넣어줘야 한다.
'Backend > Mysql' 카테고리의 다른 글
[MySQL] 더미 데이터 넣기 (0) | 2024.06.07 |
---|---|
Limit offset과 no offset (0) | 2024.06.04 |
[MySQL] SCHEMA 및 테이블 생성 (0) | 2024.05.31 |
[MySQL] NOW(), SYSDATE() - 현재 시각을 조회하는 함수 (0) | 2023.06.04 |
MySQl 프로시저 생성 권한 부여 (0) | 2023.05.17 |