Fixes #55: stop() connector to unbind socket

The `Tomcat.start()` has to happen to initialize the `ServletContext`
but we can immediately stop the connector and then restart it when
the context is finished refreshing. Seems to make curl fail quickly
if an app is slow to start.
This commit is contained in:
Dave Syer
2013-09-20 18:14:26 +01:00
parent a1631d581b
commit abb1420486
3 changed files with 20 additions and 14 deletions

View File

@@ -27,7 +27,7 @@ public class SampleController {
@Autowired
private HelloWorldService helloWorldService;
@RequestMapping("/")
@ResponseBody
public String helloWorld() {