oracle.net.ns.NetException: Got minus one from a read call


Oracle Jdbc連接錯誤:oracle.net.ns.NetException: Got minus one from a read call

 

================================

©Copyright 蕃薯耀 2020-04-15

https://www.cnblogs.com/fanshuyao/

 

一、問題描述:

Caused by: oracle.net.ns.NetException: Got minus one from a read call
   at oracle.net.ns.Packet.receive(Packet.java:303)
   at oracle.net.ns.NSProtocol.connect(NSProtocol.java:296)
   at oracle.jdbc.driver.T4CConnection.connect(T4CConnection.java:1102)
   at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:320)
   ... 48 more

 

Jdbc連接:

spring.datasource.jdbcUrl=jdbc:oracle:thin:@127.0.0.1:1521/oral
spring.datasource.driverClassName=oracle.jdbc.OracleDriver

 

二、解決方案:

將服務前的“/”換成冒號“:”

spring.datasource.jdbcUrl=jdbc:oracle:thin:@127.0.0.1:1521:oral

 

 

================================

©Copyright 蕃薯耀 2020-04-15

https://www.cnblogs.com/fanshuyao/


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM