/spring-boot-sample

This sample shows how easy to integrate Doma with Spring Boot.

Primary LanguageJavaApache License 2.0Apache-2.0

Doma with Spring Boot

This sample shows how easy to integrate Doma with Spring Boot .

Java 8 is needed to run this sample.

Clone

git clone https://github.com/domaframework/spring-boot-sample.git

Run

cd spring-boot-sample
./gradlew bootRun

Access

Select

http://localhost:8080/

JSON Response:

[{"id":1,"name":"Tokyo"},{"id":2,"name":"New York"},{"id":3,"name":"London"}]

Update

http://localhost:8080/update?name=Kyoto

JSON Response:

[{"id":1,"name":"Kyoto"},{"id":2,"name":"New York"},{"id":3,"name":"London"}]

Edit

Use Eclipse 4.4 or above.

Generate all Eclipse files with Gradle.

./gradlew eclipse

License

Apache License, Version 2.0