From 119a5656e209a957b9968e86811d6333df59dbee Mon Sep 17 00:00:00 2001 From: Phillip Webb Date: Wed, 10 Dec 2014 00:29:12 -0800 Subject: [PATCH] Update SpringBootServletInitializer ref docs Add a hint to show that the `configure` method is now optional. Fixes gh-2074 --- spring-boot-docs/src/main/asciidoc/howto.adoc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/spring-boot-docs/src/main/asciidoc/howto.adoc b/spring-boot-docs/src/main/asciidoc/howto.adoc index a008e45b2d..3b3f83d31a 100644 --- a/spring-boot-docs/src/main/asciidoc/howto.adoc +++ b/spring-boot-docs/src/main/asciidoc/howto.adoc @@ -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; } }