Skip to content

Commit

Permalink
Barrier Sample Boot Banner
Browse files Browse the repository at this point in the history
  • Loading branch information
garyrussell committed Nov 19, 2015
1 parent 4a65dcb commit 69d39f7
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -43,6 +44,7 @@ public static void main(String[] args) throws Exception {
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";
Expand Down
1 change: 1 addition & 0 deletions basic/barrier/src/main/resources/application.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
spring.output.ansi.enabled=always
15 changes: 15 additions & 0 deletions basic/barrier/src/main/resources/banner.txt
Original file line number Diff line number Diff line change
@@ -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}
2 changes: 1 addition & 1 deletion basic/barrier/src/main/resources/logback.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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>

0 comments on commit 69d39f7

Please sign in to comment.