A Spring example application with a hexagonal (clean) architecture & multi modules with Gradle.
- JDK >= 21
- Docker
- Docker Compose
# HTTPS
git clone https://github.com/trzpiot/spring-gradle-hexagonal-example.git
# or
# SSH
git clone [email protected]:trzpiot/spring-gradle-hexagonal-example.git
cd spring-gradle-hexagonal-example
cd database-neo4j
docker-compose up -d
cd ..
./gradlew bootRun
You can use the Bruno collection for testing the API (What is Bruno?).
POST /person/create
{
"name": "Name",
"firstName": "FirstName",
"age": 44
}
The Object ID of the created person entity.
"b6b5a014-1829-4195-b7be-80b742455297"
GET /person/get/{objectId}
{
"objectId": "b6b5a014-1829-4195-b7be-80b742455297",
"name": "Name",
"firstName": "FirstName",
"age": 44
}