https://www.javacodegeeks.com/2017/07/spring-boot-justice-league.html
#Laden Sie das Mongodb-Bild herunter
$ docker pull mongo
#Starten Sie Mongodb
$ docker run -p 27017:27017 -d mongo
# spring-Boot-Beispiel klonen
$ git clone https://github.com/dinukadev/justiceleague_management_system/tree/master/src/main/java/com/justiceleague/justiceleaguemodule
$ cd justiceleaguemodule
#Bauen
$ mvn clean install
#Lauf
$ java -jar target/justiceleaguemodule-0.0.1-SNAPSHOT.jar
#API-Bestätigung
$ curl -H "Content-Type: application/json" -X POST -d '{"name":"Hatimiti","superPower":"super speed","location":"Central City"}' http://localhost:8080/justiceleague/addMember
Recommended Posts