was gracefully shutdown

This commit is contained in:
kimyonghwa
2019-05-02 19:08:43 +09:00
parent 24192c2b72
commit b3da392b47
6 changed files with 77 additions and 3 deletions

View File

@@ -5,6 +5,7 @@ import lombok.Setter;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
@Slf4j
@@ -39,4 +40,11 @@ public class HelloController {
public String helloworld() {
return HELLO;
}
@GetMapping("/helloworld/long-process")
@ResponseBody
public String pause() throws InterruptedException {
Thread.sleep(10000);
return "Process finished";
}
}