An open API service indexing awesome lists of open source software.

https://github.com/eukolos/spring-boot-3-example

we native build this app thanx to Spring Boot 3 and Graalvm
https://github.com/eukolos/spring-boot-3-example

docker graalvm graalvm-native-image java-17 maven spring-boot-3-0-0

Last synced: about 2 months ago
JSON representation

we native build this app thanx to Spring Boot 3 and Graalvm

Awesome Lists containing this project

README

          

### Spring Boot 3 - GraalVM
feature

### 🔨 Run the App

#### Maven

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
```

### Used Dependencies
* Core
* Spring
* Spring Boot 3
* Spring Web
* H2 Database
* Docker
* GraalVM CE Java 17-22.3.0

### Create a Post

```
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 Post List

```
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 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}
```

### Resource

- [Spring Boot 3 release](https://spring.io/blog/2022/11/24/spring-boot-3-0-goes-ga)
- [SpringDeveloper Youtube Channel](https://www.youtube.com/watch?v=TOfYlLjXufw&ab_channel=SpringDeveloper)
- [GraalVM Native Image Support](https://docs.spring.io/spring-boot/docs/3.0.0/reference/html/native-image.html#native-image)