mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-09-03 04:26:12 +08:00
Update SpringBootServletInitializer ref docs
Add a hint to show that the `configure` method is now optional. Fixes gh-2074
This commit is contained in:
parent
400b664098
commit
119a5656e2
@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user