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
- Host: GitHub
- URL: https://github.com/eukolos/spring-boot-3-example
- Owner: Eukolos
- Created: 2022-12-14T18:53:49.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2022-12-27T19:19:51.000Z (over 3 years ago)
- Last Synced: 2025-06-20T00:05:02.739Z (about 1 year ago)
- Topics: docker, graalvm, graalvm-native-image, java-17, maven, spring-boot-3-0-0
- Language: Java
- Homepage:
- Size: 118 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
### Spring Boot 3 - GraalVM

### 🔨 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)