Got minus one from a read call, connect lapse

通过docker创建的Oracle数据,springboot连接时,不能使用localhost别名,会报错。要使用ip地址(内网ip即可)

Got minus one from a read call, connect lapse

 

https://stackoverflow.com/questions/19660336/how-to-approach-a-got-minus-one-from-a-read-call-error-when-connecting-to-an-a

 

I got this error message from using an oracle database in a docker despite the fact i had publish port to host option "-p 1521:1521". I was using jdbc url that was using ip address 127.0.0.1, i changed it to the host machine real ip address and everything worked then.

 

It worked for me too. Only put the internal server address IP. no is necessary to put a public IP.

posted @ 2025-03-17 17:50  前端小小菜  阅读(110)  评论(0)    收藏  举报