package com.ippon.jug.poule;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class SlipController {

    @RequestMapping(value = "/request")
    public String getRequest() throws InterruptedException {
        this.doSlip();
        return "Spring and Spring cloud are Awesome !!";
    }

    private static final int SLEEP_MILLIS = 100;

    private synchronized void doSlip() throws InterruptedException {
        Thread.sleep(SLEEP_MILLIS);
    }
}

@@ -150,16 +150,84 @@
 oller;%0A%0A
+import java.net.InetAddress;%0Aimport java.net.UnknownHostException;%0A%0A
 @RestCon
@@ -355,32 +355,54 @@
 rruptedException
+, UnknownHostException
  %7B%0A        this.
@@ -431,47 +431,62 @@
 rn %22
-Spring and Spring cloud are Awesome !!%22
+Hello I'm %22 + InetAddress.getLocalHost().getHostName()
 ;%0A  

Return hostname