SpringExamples

Spring boot custom banner example

By Admin | Filed Under: Spring Boot

Learn how to configure custom start-up banners in Spring Boot applications.

1. Create text file containing custom ASCII art

  1. Create an ASCII art from any online tool such as this.
  2. Name the file banner.txt.
  3. Place the text file with ASCII art in /resources folder.

2. Set Banner Mode

Set the banner mode to either CONSOLE or LOG.

spring.main.banner-mode=CONSOLE
Do not use mode OFF. It will disable the display of banner.
Sourcecode Download

Ask Questions & Share Feedback Cancel reply

Your email address will not be published. Required fields are marked *

*Want to Post Code Snippets or XML content? Please use [java] ... [/java] tags otherwise code may not appear partially or even fully. e.g.
[java] 
public static void main (String[] args) {
...
}
[/java]

Development Environment

  • Spring Boot 2.0.1.RELEASE
  • Maven
  • JDK 8
  • Eclipse

Spring Boot Tutorial

  • Hello world example
  • Which main class
  • Print all beans
  • Embedded jetty server
  • CommandLineRunner
  • Custom banner
  • Change Root Path and Server Port

Spring Tutorial

  • IoC Container
  • Java Configuration

Spring WebMVC Tutorial

  • Minimum required config

Copyright © 2016 · springexamples.com · All Rights Reserved. | Sitemap