https://www.javacodegeeks.com/2017/07/spring-boot-justice-league.html
#Télécharger l'image mongodb
$ docker pull mongo
#Démarrer mongodb
$ docker run -p 27017:27017 -d mongo
# spring-Exemple de démarrage de clonage
$ git clone https://github.com/dinukadev/justiceleague_management_system/tree/master/src/main/java/com/justiceleague/justiceleaguemodule
$ cd justiceleaguemodule
#Construire
$ mvn clean install
#Courir
$ java -jar target/justiceleaguemodule-0.0.1-SNAPSHOT.jar
#Confirmation de l'API
$ curl -H "Content-Type: application/json" -X POST -d '{"name":"Hatimiti","superPower":"super speed","location":"Central City"}' http://localhost:8080/justiceleague/addMember
Recommended Posts