Created
April 30, 2016 09:39
-
-
Save r-winkler/4ef517b1b5ce666a2d142c83bc8ab45d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@RestController | |
public class HelloController { | |
@RequestMapping("/hello") | |
public String sayHello(HttpServletResponse response) throws InterruptedException { | |
response.setHeader("Cache-Control", "max-age=5"); | |
TimeUnit.SECONDS.sleep(2); | |
return "Hello World!"; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment