skip to Main Content

Failing to communicate between two Docker containers via Rest API using Java Spring Boot

I have two Java Spring Boot applications: On port 8080: @SpringBootApplication @RestController public class LogonPageApplication { private static final String PROCESS_STRING_URL = "http://localhost:8081/processString"; public static void main(String[] args) { SpringApplication.run(LogonPageApplication.class, args); } @GetMapping("/send") public String test() { String responseBody =…

VIEW QUESTION
Back To Top
Search