Update SpringBootServletInitializer ref docs

Add a hint to show that the `configure` method is now optional.

Fixes gh-2074
This commit is contained in:
Phillip Webb 2014-12-10 00:29:12 -08:00
parent 400b664098
commit 119a5656e2

View File

@ -2092,7 +2092,10 @@ Example:
@Override
protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
return application.sources(Application.class);
// Customize the application or call application.sources(...) to add sources
// Since our example is itself a @Configuration class we actually don't
// need to override this method.
return application;
}
}