-
Create a sample SpringBoot application
- Create a SpringBoot app using https://start.spring.io/
- Open the SpringBoot app with intellij
- Create a Rest endpoint
GreetingController
-
Run the application using Docker
-
Initialise the
Dockerfile
and thedocker-compose.yml
files -
Enable the debug agent and port in the docker configuration
- Dockerfile
ENV JAVA_TOOL_OPTIONS -agentlib:jdwp=transport=dt_socket,address=5005,server=y,suspend=n
- docker-compose.yml
- 5005:5005
-
Start the SpringBoot application with Docker compose
docker-compose up --build
- Call the rest endpoint
http://localhost:8080/greeting http://localhost:8080/greeting?name=SpringBoot
-
-
Attach the debugger to the running Docker image
-
Notifications
You must be signed in to change notification settings - Fork 0
License
francescofavatella/java-remote-debug
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published