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/

posted @ 2020-04-15 15:36  蕃薯耀  阅读(6615)  评论(0编辑  收藏  举报