Fix deprecated use of boot's showBanner
- Use setBannerMode instead
This commit is contained in:
committed by
Mark Fisher
parent
770047871b
commit
73ba7b059d
@@ -16,6 +16,7 @@
|
||||
|
||||
package org.springframework.cloud.stream.aggregate;
|
||||
|
||||
import org.springframework.boot.Banner.Mode;
|
||||
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
|
||||
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
|
||||
import org.springframework.boot.builder.SpringApplicationBuilder;
|
||||
@@ -105,7 +106,7 @@ public class AggregateApplication {
|
||||
Class<?> module) {
|
||||
return new SpringApplicationBuilder(module)
|
||||
.web(false)
|
||||
.showBanner(false)
|
||||
.bannerMode(Mode.OFF)
|
||||
.properties(CHANNEL_NAMESPACE_PROPERTY_NAME + "=" + namespace)
|
||||
.registerShutdownHook(false)
|
||||
.parent(applicationContext);
|
||||
|
||||
@@ -21,6 +21,7 @@ import java.util.HashSet;
|
||||
import java.util.List;
|
||||
|
||||
import org.springframework.beans.BeansException;
|
||||
import org.springframework.boot.Banner.Mode;
|
||||
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
|
||||
import org.springframework.boot.builder.SpringApplicationBuilder;
|
||||
import org.springframework.boot.context.properties.ConfigurationProperties;
|
||||
@@ -183,7 +184,7 @@ public class AggregateBuilder implements ApplicationContextAware {
|
||||
private ChildContextBuilder childContext(Class<?> type) {
|
||||
return new ChildContextBuilder(new SpringApplicationBuilder(type,
|
||||
SeedConfiguration.class).parent(AggregateBuilder.this.parent)
|
||||
.showBanner(false).web(false)
|
||||
.bannerMode(Mode.OFF).web(false)
|
||||
.initializers(new BeanPostProcessorInitializer()));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user