diff options
author | Zlatko Murgoski <zlatko.murgoski@nokia.com> | 2018-11-09 10:23:56 +0100 |
---|---|---|
committer | Zlatko Murgoski <zlatko.murgoski@nokia.com> | 2018-11-09 10:23:56 +0100 |
commit | 174e08b4c4942eaa70cea889b4819334145216b9 (patch) | |
tree | c88a51b9663334f8a8774bd8c0b3248bb3387c12 /src | |
parent | e6670c869f7094278b9f2952b1ddd79f769c2129 (diff) |
Add spring boot banner
Add spring boot banner
Change-Id: Icd3b637ad7ed9431d3258df96dfd1b64e0fc7f3b
Issue-ID: DCAEGEN2-967
Signed-off-by: Zlatko Murgoski <zlatko.murgoski@nokia.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/org/onap/dcae/VesApplication.java | 12 | ||||
-rw-r--r-- | src/main/resources/banner.txt | 5 |
2 files changed, 11 insertions, 6 deletions
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 / | |___ ___) | | |___ | (_) | | | | | | __/ | (__ | |_ | (_) | | | + \_/ |_____| |____/ \____| \___/ |_| |_| \___| \___| \__| \___/ |_| |