I trying Eureka Service Discovery for the first time and this is the problem I am facing.
java.net.UnknownHostException: banking-portal
at java.base/sun.nio.ch.NioSocketImpl.connect(NioSocketImpl.java:567) ~[na:na]
at java.base/java.net.Socket.connect(Socket.java:751) ~[na:na]
at java.base/java.net.Socket.connect(Socket.java:686) ~[na:an]
My Eureka server is running and both of my applications are registered
But, while trying to hit the URL
"http://banking-portal/accounts/getById/{accountId}";
I am getting the above-mentioned error.
Please let me know what I am missing.
You need to sign in to view this answers
Leave feedback about this