An example project with Spring Boot and Kotlin.
- Serving static content under
/src/main/resources/static
with Spring MVC. - Providing REST endpoint with Spring Data REST.
- Accessing to database with Spring Data JPA.
- Configuring application with Spring Boot.
- Written in Kotlin.
Build and run.
./gradlew bootRun
Open http://localhost:8080/items in your browser. Make post request to add an item as follows.
curl http://localhost:8080/items -X POST -d '{"name": "Foo", "description": "Bar"}' -H 'Content-Type: application/json'