Barrier Sample Boot Banner

This commit is contained in:
Gary Russell
2015-11-19 16:18:07 -05:00
parent 4a65dcbff4
commit 69d39f7ff2
4 changed files with 19 additions and 1 deletions

View File

@@ -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";

View File

@@ -0,0 +1 @@
spring.output.ansi.enabled=always

View File

@@ -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}

View File

@@ -13,7 +13,7 @@
</root>
<logger name="org.springframework" level="WARN" />
<logger name="org.springframework.integration" level="WARN" />
<logger name="org.springframework.integration" level="ERROR" />
<logger name="org.springframework.amqp" level="WARN" />
</configuration>