美文网首页
Tomcat启动时报错:Cause:java.sql.SQLEx

Tomcat启动时报错:Cause:java.sql.SQLEx

作者: 夏_0327 | 来源:发表于2018-08-23 13:42 被阅读0次

环境:springboot1.5.10 + druid1.1.6 + oracle11.2.0.4.0 + tomcat7,本地运行没有问题,但是部署到Linux后,报Cause:java.sql.SQLException: not support oracle driver 5.1错误。

分析:百度一下都说是oracle驱动版本冲突问题,检查了一下发现自己的驱动版本就是ojdbc6-11.2.0.4.0,跟数据库版本完全一致。后来怀疑可能是druid版本问题,于是就将druid-spring-boot-starter降到最低版,发现项目正常启动。

解决方案:项目引用的druid-spring-boot-starter版本为:1.1.6,将druid-spring-boot-starter版本降为:1.1.0即可。

相关文章

网友评论

      本文标题:Tomcat启动时报错:Cause:java.sql.SQLEx

      本文链接:https://www.haomeiwen.com/subject/rfgpiftx.html