Skip to content

Flows-git/spring-boot-examples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Spring Boot Examples

An example how to start Spring Boot in Docker with hot reload and debug mode

Setup

With Docker Compose

docker compose up

With Docker

# build a docker image
docker build -t spring-examples .
# start the image
docker run -d -p 8080:8080 -p 5005:5005 spring-examples

Enable Debugging in VSCode

  • Create .vscode/launch.json with:
    {
      "configurations": [
        {
          "type": "java",
          "name": "Docker Spring Boot-ApiApplication",
          "request": "attach",
          "projectName": "api",
          "hostName": "localhost",
          "port": 5005
        },
      ]
    }
  • start the app - docker compose up
  • in VSCode - click Run and Debug -> Start Debugging

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published