From 69d39f7ff257410ed27a2947e39a7964bcf1482f Mon Sep 17 00:00:00 2001 From: Gary Russell Date: Thu, 19 Nov 2015 16:18:07 -0500 Subject: [PATCH] Barrier Sample Boot Banner --- .../integration/samples/barrier/Application.java | 2 ++ .../src/main/resources/application.properties | 1 + basic/barrier/src/main/resources/banner.txt | 15 +++++++++++++++ basic/barrier/src/main/resources/logback.xml | 2 +- 4 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 basic/barrier/src/main/resources/application.properties create mode 100644 basic/barrier/src/main/resources/banner.txt diff --git a/basic/barrier/src/main/java/org/springframework/integration/samples/barrier/Application.java b/basic/barrier/src/main/java/org/springframework/integration/samples/barrier/Application.java index ea3a75af..0706ffc4 100644 --- a/basic/barrier/src/main/java/org/springframework/integration/samples/barrier/Application.java +++ b/basic/barrier/src/main/java/org/springframework/integration/samples/barrier/Application.java @@ -17,6 +17,7 @@ package org.springframework.integration.samples.barrier; import org.springframework.amqp.rabbit.connection.CachingConnectionFactory; +import org.springframework.boot.Banner.Mode; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.boot.builder.SpringApplicationBuilder; @@ -43,6 +44,7 @@ public class Application { ConfigurableApplicationContext client = new SpringApplicationBuilder("/META-INF/spring/integration/client-context.xml") .web(false) + .bannerMode(Mode.OFF) .run(args); RequestGateway requestGateway = client.getBean("requestGateway", RequestGateway.class); String request = "A,B,C"; diff --git a/basic/barrier/src/main/resources/application.properties b/basic/barrier/src/main/resources/application.properties new file mode 100644 index 00000000..7a694787 --- /dev/null +++ b/basic/barrier/src/main/resources/application.properties @@ -0,0 +1 @@ +spring.output.ansi.enabled=always diff --git a/basic/barrier/src/main/resources/banner.txt b/basic/barrier/src/main/resources/banner.txt new file mode 100644 index 00000000..af45c57b --- /dev/null +++ b/basic/barrier/src/main/resources/banner.txt @@ -0,0 +1,15 @@ +${AnsiColor.DEFAULT} +${AnsiColor.GREEN} + _____ _____ _ _ + / ____| (_) |_ _| | | | | (_) + | (___ _ __ _ __ _ _ __ __ _ | | _ __ | |_ ___ __ _ _ __ __ _| |_ _ ___ _ __ + \___ \| '_ \| '__| | '_ \ / _` | | | | '_ \| __/ _ \/ _` | '__/ _` | __| |/ _ \| '_ \ + ____) | |_) | | | | | | | (_| | _| |_| | | | || __/ (_| | | | (_| | |_| | (_) | | | | + |_____/| .__/|_| |_|_|_|_|\__, | |_____|_| |_|\__\___|\__, |_| \__,_|\__|_|\___/|_| |_| + | _ \ | | (_) __/ | / ____| __/ | | | ${AnsiColor.BRIGHT_BLUE} ____________${AnsiColor.GREEN} + | |_) ||_| _ _ __ _ __ _ _|___/__ | (___ __ _ _ __ |___/_ __ | | ___ ${AnsiColor.BRIGHT_BLUE} \ \ \ \ \ \ \${AnsiColor.GREEN} + | _ < / _` | '__| '__| |/ _ \ '__| \___ \ / _` | '_ ` _ \| '_ \| |/ _ \ ${AnsiColor.BRIGHT_BLUE} \ \ \ \ \ \ \${AnsiColor.GREEN} + | |_) | (_| | | | | | | __/ | ____) | (_| | | | | | | |_) | | __/ ${AnsiColor.BRIGHT_BLUE} / / / / / / /${AnsiColor.GREEN} + |____/ \__,_|_| |_| |_|\___|_| |_____/ \__,_|_| |_| |_| .__/|_|\___| ${AnsiColor.BRIGHT_BLUE} / / / / / / /${AnsiColor.GREEN} +============================================================| |=========== + |_|${AnsiColor.DEFAULT} diff --git a/basic/barrier/src/main/resources/logback.xml b/basic/barrier/src/main/resources/logback.xml index f8caae18..529bd8b5 100644 --- a/basic/barrier/src/main/resources/logback.xml +++ b/basic/barrier/src/main/resources/logback.xml @@ -13,7 +13,7 @@ - +