ojdbc6报红以及nested exception is org.hibernate.service.spi.ServiceException: 已解决
錯誤記錄5:
報錯如下:Exception in thread "main" org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in class path resource [applicationContext.xml]: Invocation of init method failed; nested exception is org.hibernate.service.spi.ServiceException: Unable to create requested service [org.hibernate.engine.jdbc.env.spi.JdbcEnvironment]
?
報這個錯誤在網上搜了一堆 都沒解決? 最后發現是ojdbc6那個jar包的問題,這個包之前jar包加的時候就有問題? 當時是報紅 以為不報紅就沒事了 ,
接下來記錄一下解決這個問題的方法
1.因為ojdbc6是收費的,不能像別的jar包一樣在pom里復制代碼自動下載,所以需要我們手動加 ?首先 下載一個ojdbc6的jar包
下載地址:https://download.csdn.net/download/ting0712/12064893
放在你的maven倉庫里?
2.打開
?
這里選擇的是 前面下的 那個jar包??
點完ok點 Apply--->再Ok 就可以了?
pom文件里的 關于ojdbc6的這段注釋掉就可以了
<!-- https://mvnrepository.com/artifact/com.oracle.jdbc/ojdbc8 --><!--<dependency>--><!--<groupId>com.oracle</groupId>--><!--<artifactId>ojdbc6</artifactId>--><!--<version>11.2.0.2.0</version>--><!--</dependency>-->?我的這個錯誤是 這個jar包 加好了 就完事了??
為報這個錯的同僚 提供一個 解決辦法 over
?
?
?
?
總結
以上是生活随笔為你收集整理的ojdbc6报红以及nested exception is org.hibernate.service.spi.ServiceException: 已解决的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 关于运行opendaylight时cli
- 下一篇: Teams的Incoming Webho