
agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:5005 Open the DemoApplication class and create a resource controller, in this example mapped with alias /echo, that is simply going to return the value from the request. Generate and Download a Spring Boot project with only "Spring Web" as a dependency. We don't want more logic in our code as the goal is to get our debug config ready in this local/docker/springboot environment.We want to put a breakpoint in the controller to demonstrate the debug configuration is working properly.We will have only one (GET) endpoint that receives a "value" as string parameter and return that back to the client.Naturally, I needed to find a way to debug my app, which is the step I want to explain here.

I had to setup a local environment for a Spring Boot application running in a Docker container. : Remote Debug Spring Boot App in a Docker Container using IntelliJ IDEA Home |Ībout Remote Debug Spring Boot App in a Docker Container using IntelliJ IDEA
