How to change Spring Boot logo to Nyan Cat?

When I application starts I should see something similar to the following:

  .   ____          _            __ _ _
 /\\ / ___'_ __ _ _(_)_ __  __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
 \\/  ___)| |_)| | | | | || (_| |  ) ) ) )
  '  |____| .__|_| |_|_| |_\__, | / / / /
 =========|_|==============|___/=/_/_/_/

How to change Spring Boot logo to Nyan Cat like below image?

enter image description here

https://spring.io/blog/2015/11/16/spring-boot-1-3-0-released


The article already contains most information about how to do that:

Color Banners

Your banner.txt files can now include ANSI color codes. You can do crazy things like this:

If you look at the Spring docs, you can then find more information about how to tweak the banner.txt file.

So, by adding a banner.txt file to the classpath, you can add your own banner. The background of a tile can be changed with ${AnsiBackground.NAME} where NAME is the name of the color. The list of colors can be found in the AnsiColor class.

Below the nyan cat you can see a small text with :: Meow :: Running Spring Boot 1.3.0.RC1 :: \ö/, to create such text you can use the ${spring-boot.version} placeholder.

You can also create a banner programmatically with SpringApplication.setBanner(), but like I already set, it's all in the docs.

The source of the actual Nyan cat banner can be found on GitHub, as mentioned by Stephane.


Use Spring Boot Banner Generator ; If you want to use any "image" to generate a banner for your Spring Boot application.

Copy the generated ASCII characters into /src/main/resources/banner.txt