Barrier Sample Boot Banner
This commit is contained in:
@@ -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";
|
||||
|
||||
1
basic/barrier/src/main/resources/application.properties
Normal file
1
basic/barrier/src/main/resources/application.properties
Normal file
@@ -0,0 +1 @@
|
||||
spring.output.ansi.enabled=always
|
||||
15
basic/barrier/src/main/resources/banner.txt
Normal file
15
basic/barrier/src/main/resources/banner.txt
Normal 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}
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user