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
- Host: GitHub
- URL: https://github.com/jcavat/http-server-springboot-example
- Owner: jcavat
- Created: 2018-12-20T09:31:20.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2018-12-20T09:32:00.000Z (about 7 years ago)
- Last Synced: 2025-01-18T10:45:22.214Z (about 1 year ago)
- Topics: example, http-server, java11, snippet, spring-rest-api
- Language: Java
- Size: 1.95 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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"
]
}
```