1 ) Download your project from this link shown below
git clone https://github.com/Eukolos/spring-boot-3-example.git
2 ) Go to the project's home directory shown below
cd spring-boot-3-example
3 ) Create native image though this command shown below
mvn -Pnative spring-boot:build-image
4 ) Run the project though this command shown below
docker-compose up
- Core
- Spring
- Spring Boot 3
- Spring Web
- H2 Database
- Spring
- Docker
- GraalVM CE Java 17-22.3.0
POST /v1/post
Accept: application/json
Content-Type: application/json
{
"title" : "GraalVM",
"body" : "uber fasttt",
}
RESPONSE: HTTP 200 (OK)
Location header: http://localhost:9090/v1/post
GET /v1/post
Accept: application/json
Content-Type: application/json
{
}
RESPONSE: HTTP 200 (OK)
Content: paginated list
Location header: http://localhost:9090/v1/post
GET /v1/post/{id}
Accept: application/json
Content-Type: application/json
{
}
RESPONSE: HTTP 200 (OK)
Content: paginated list
Location header: http://localhost:9090/v1/post/{id}