From 174e08b4c4942eaa70cea889b4819334145216b9 Mon Sep 17 00:00:00 2001 From: Zlatko Murgoski Date: Fri, 9 Nov 2018 10:23:56 +0100 Subject: Add spring boot banner Add spring boot banner Change-Id: Icd3b637ad7ed9431d3258df96dfd1b64e0fc7f3b Issue-ID: DCAEGEN2-967 Signed-off-by: Zlatko Murgoski --- src/main/java/org/onap/dcae/VesApplication.java | 12 ++++++------ src/main/resources/banner.txt | 5 +++++ 2 files changed, 11 insertions(+), 6 deletions(-) create mode 100644 src/main/resources/banner.txt diff --git a/src/main/java/org/onap/dcae/VesApplication.java b/src/main/java/org/onap/dcae/VesApplication.java index a7426be2..a70d0935 100644 --- a/src/main/java/org/onap/dcae/VesApplication.java +++ b/src/main/java/org/onap/dcae/VesApplication.java @@ -21,6 +21,12 @@ package org.onap.dcae; import io.vavr.collection.Map; +import java.nio.file.Paths; +import java.util.concurrent.ExecutorService; +import java.util.concurrent.Executors; +import java.util.concurrent.LinkedBlockingQueue; +import java.util.concurrent.ScheduledThreadPoolExecutor; +import java.util.concurrent.TimeUnit; import org.json.JSONObject; import org.onap.dcae.commonFunction.EventProcessor; import org.onap.dcae.commonFunction.event.publishing.DMaaPConfigurationParser; @@ -30,18 +36,13 @@ import org.onap.dcae.controller.ConfigLoader; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Qualifier; -import org.springframework.boot.Banner; import org.springframework.boot.SpringApplication; -import org.springframework.boot.autoconfigure.EnableAutoConfiguration; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.boot.autoconfigure.gson.GsonAutoConfiguration; import org.springframework.boot.autoconfigure.security.servlet.SecurityAutoConfiguration; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Lazy; -import java.nio.file.Paths; -import java.util.concurrent.*; - @SpringBootApplication(exclude = {GsonAutoConfiguration.class, SecurityAutoConfiguration.class}) public class VesApplication { @@ -72,7 +73,6 @@ public class VesApplication { executor.execute(ep); } - app.setBannerMode(Banner.Mode.OFF); app.setAddCommandLineProperties(true); app.run(); } diff --git a/src/main/resources/banner.txt b/src/main/resources/banner.txt new file mode 100644 index 00000000..d73e9a36 --- /dev/null +++ b/src/main/resources/banner.txt @@ -0,0 +1,5 @@ + __ __ _____ ____ ____ _ _ _ + \ \ / / | ____| / ___| / ___| ___ | | | | ___ ___ | |_ ___ _ __ + \ \ / / | _| \___ \ | | / _ \ | | | | / _ \ / __| | __| / _ \ | '__| + \ V / | |___ ___) | | |___ | (_) | | | | | | __/ | (__ | |_ | (_) | | | + \_/ |_____| |____/ \____| \___/ |_| |_| \___| \___| \__| \___/ |_| -- cgit 1.2.3-korg