https://github.com/eis/spring-boot-example
Simple Spring Boot app to get started.
https://github.com/eis/spring-boot-example
java17 spring-boot-3
Last synced: 2 months ago
JSON representation
Simple Spring Boot app to get started.
- Host: GitHub
- URL: https://github.com/eis/spring-boot-example
- Owner: eis
- Created: 2015-08-22T08:15:22.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2024-08-01T21:45:07.000Z (almost 2 years ago)
- Last Synced: 2025-01-01T08:20:50.571Z (over 1 year ago)
- Topics: java17, spring-boot-3
- Language: Java
- Homepage:
- Size: 310 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Simple Spring Boot app
======================
Originally started from tutorial at https://spring.io/guides/gs/spring-boot/ but with added
- Thymeleaf MVC
- counter operation
- Springdoc api documentation
- "runme" scripts
- integration tests
- resteasy tests
- robot acceptance test
- GitHub Actions build
- AWS CodeBuild build
- CodeCov integration
- Dockerfile
- Vagrantfile
Answers to [http://localhost:8080/](http://localhost:8080/) (GET) and
[http://localhost:8080/add](http://localhost:8080/add) (POST), latter being
JSON interface.
See [http://localhost:8080/swagger-ui.html](http://localhost:8080/swagger-ui.html) for usage.
Docker stuff
------------
```bash
# build container from Dockerfile
docker build -t spring-boot-example .
# run container
docker run -ti -p 0.0.0.0:8080:8080 --rm spring-boot-example
# call your container
curl `docker-machine ip default`:8080
# stop your container
docker stop CONTAINERNAME
# debug something
docker ps
```
For Docker job on AWS, see [Docker sample for CodeBuild](https://docs.aws.amazon.com/codebuild/latest/userguide/sample-docker.html)