{"action":"created","issue":{"url":"https://api.github.com/repos/spring-projects/spring-boot/issues/2614","labels_url":"https://api.github.com/repos/spring-projects/spring-boot/issues/2614/labels{/name}","comments_url":"https://api.github.com/repos/spring-projects/spring-boot/issues/2614/comments","events_url":"https://api.github.com/repos/spring-projects/spring-boot/issues/2614/events","html_url":"https://github.com/spring-projects/spring-boot/issues/2614","id":60206115,"number":2614,"title":"Provide auto configuration mechanism to customize SpringApplication class","user":{"login":"joshuawhite929","id":836419,"avatar_url":"https://avatars.githubusercontent.com/u/836419?v=3","gravatar_id":"","url":"https://api.github.com/users/joshuawhite929","html_url":"https://github.com/joshuawhite929","followers_url":"https://api.github.com/users/joshuawhite929/followers","following_url":"https://api.github.com/users/joshuawhite929/following{/other_user}","gists_url":"https://api.github.com/users/joshuawhite929/gists{/gist_id}","starred_url":"https://api.github.com/users/joshuawhite929/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joshuawhite929/subscriptions","organizations_url":"https://api.github.com/users/joshuawhite929/orgs","repos_url":"https://api.github.com/users/joshuawhite929/repos","events_url":"https://api.github.com/users/joshuawhite929/events{/privacy}","received_events_url":"https://api.github.com/users/joshuawhite929/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-03-07T13:24:03Z","updated_at":"2015-03-10T01:28:16Z","closed_at":"2015-03-10T01:28:16Z","body":"For example, to customize Spring Boot's banner, we have two options:\r\n\r\n1.  Add a banner.txt\r\n2.  Use SpringApplication directly to set a customer Banner implementation\r\n\r\nExtending the SpringApplication class is not really feasible as the static \"run\" methods will create an instance of SpringApplication and ignore your subclass.\r\n\r\nIt would be nice if I could leverage the same spring boot  auto configuration mechanism or the spring.factories mechanism to customize the banner or anything else within the SpringApplication class.  Another option may be to use a callback mechanism similar to how DelegatingWebMvcConfiguration /WebMvcConfigurer works.  This would allow those who build on top of SpringBoot to customize the application without having endusers add boiler plate customization to their SpringApplication instance directly. "},"comment":{"url":"https://api.github.com/repos/spring-projects/spring-boot/issues/comments/77979549","html_url":"https://github.com/spring-projects/spring-boot/issues/2614#issuecomment-77979549","issue_url":"https://api.github.com/repos/spring-projects/spring-boot/issues/2614","id":77979549,"user":{"login":"philwebb","id":519772,"avatar_url":"https://avatars.githubusercontent.com/u/519772?v=3","gravatar_id":"","url":"https://api.github.com/users/philwebb","html_url":"https://github.com/philwebb","followers_url":"https://api.github.com/users/philwebb/followers","following_url":"https://api.github.com/users/philwebb/following{/other_user}","gists_url":"https://api.github.com/users/philwebb/gists{/gist_id}","starred_url":"https://api.github.com/users/philwebb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/philwebb/subscriptions","organizations_url":"https://api.github.com/users/philwebb/orgs","repos_url":"https://api.github.com/users/philwebb/repos","events_url":"https://api.github.com/users/philwebb/events{/privacy}","received_events_url":"https://api.github.com/users/philwebb/received_events","type":"User","site_admin":false},"created_at":"2015-03-10T01:28:16Z","updated_at":"2015-03-10T01:28:16Z","body":"Actually we also have a bit of a chicken/egg situation. The banner gets displayed early (before the application context has been created) so I don't think we can use auto-configuration to change it."}}