This commit is contained in:
Phillip Webb
2017-11-15 11:59:09 -08:00
parent cf485ce144
commit f647f5689f
13 changed files with 38 additions and 32 deletions

View File

@@ -31,13 +31,7 @@ public class SampleController {
@GetMapping("/async")
public Callable<String> helloWorldAsync() {
return new Callable<String>() {
@Override
public String call() throws Exception {
return "async: Hello World";
}
};
return () -> "async: Hello World";
}
}