Posted inSPRING BOOT
HITTING URL AND READING JSON RESPONSE IN JAVA
In this example, we going to hit a URL and read its response String urlString = "http://gd.geobytes.com/GetCityDetails"; URL url = new URL(urlString); BufferedReader reader = new BufferedReader(new InputStreamReader(url.openStream())); //or url.getContent();…