Spring boot项目启动报错oracle.jdbc.driver.OracleDriver is deprecated,但项目还可以起来

报错信息:[main] ERROR c.a.d.pool.DruidAbstractDataSource-oracle.jdbc.driver.OracleDriver is deprecated.

解决:修改配置文件中的spring.datasource.driver-class-name=oracle.jdbc.driver.OracleDriver

 为:spring.datasource.driver-class-name=oracle.jdbc.OracleDriver

Orcale9之后就将oracle.jdbc.driver.OracleDriver改为oracle.jdbc.OracleDriver

你可能感兴趣的:(springboot,Oracle)