@RestController public class SampleController extends Object implements org.springframework.context.ApplicationListener<org.springframework.boot.web.servlet.context.ServletWebServerInitializedEvent>
| Constructor and Description |
|---|
SampleController() |
| Modifier and Type | Method and Description |
|---|---|
String |
async() |
Callable<String> |
call() |
String |
hi() |
String |
hi2() |
void |
onApplicationEvent(org.springframework.boot.web.servlet.context.ServletWebServerInitializedEvent event) |
String |
start() |
String |
traced() |
@RequestMapping(value="/") public String hi() throws InterruptedException
InterruptedException@RequestMapping(value="/async") public String async() throws InterruptedException
InterruptedException@RequestMapping(value="/hi2") public String hi2() throws InterruptedException
InterruptedException@RequestMapping(value="/traced") public String traced() throws InterruptedException
InterruptedException@RequestMapping(value="/start") public String start() throws InterruptedException
InterruptedExceptionpublic void onApplicationEvent(org.springframework.boot.web.servlet.context.ServletWebServerInitializedEvent event)
onApplicationEvent in interface org.springframework.context.ApplicationListener<org.springframework.boot.web.servlet.context.ServletWebServerInitializedEvent>Copyright © 2021 Pivotal Software, Inc.. All rights reserved.