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

https://github.com/jcavat/http-server-springboot-example


https://github.com/jcavat/http-server-springboot-example

example http-server java11 snippet spring-rest-api

Last synced: about 2 months ago
JSON representation

Awesome Lists containing this project

README

          

# Summary

This simple example lets you run a http server with Spring boot.

Here are good resources who inspired this current snippet :

- https://spring.io/guides/gs/rest-service/
- https://www.baeldung.com/spring-controller-vs-restcontroller

## How to

Build and run :

```
mvn clean package
mvn spring-boot:run
```

Open a browser at : http://localhost:8080/toto

result:

```
{
"owner": "Marcus Miller",
"id": 2,
"xs": [
"Houhou",
"Haha"
]
}
```