📚 [STS] com.mysql.jdbc.Driver'.This is deprecated

Category: STS | 📅 August 24, 2017

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.

Jdbc 적어줄때 오류가 나는 경우.

해결

private static final String DRIVER = "com.mysql.cj.jdbc.Driver";

끝.

물론, 다른 에러가 날테지 ㅋㅋ

🏷️ Tags
  • #sts  
  • #macos