Springboot with mysql
270
A Docker image for a Spring Boot-based Sample User Service with built-in connection pooling and version tracking.
openjdk:17v1, v2GET /welcomeReturns a text response with the application version.
curl http://localhost:8080/welcome
# Output: "Welcome to version 1"
GET /usersFetches the list of all users.
curl http://localhost:8080/users
POST /userCreates a new user. Email must be unique.
curl -X POST http://localhost:8080/users \
-H "Content-Type: application/json" \
-d '{"name": "Ashish", "email": "[email protected]"}'
GET /pool-statusChecks the database connection pool status.
curl http://localhost:8080/pool-status
docker pull ashishdev1/springbootwithmysql:v1
Ashish Agrawal
Content type
Image
Digest
sha256:3eaf76618…
Size
278 MB
Last updated
over 1 year ago
docker pull ashishdev1/springbootwithmysql:v2