Relocate banner properties to spring.banner
Closes gh-11339
This commit is contained in:
@@ -28,15 +28,6 @@ content into your application. Rather, pick only the properties that you need.
|
||||
# CORE PROPERTIES
|
||||
# ----------------------------------------
|
||||
|
||||
# BANNER
|
||||
banner.charset=UTF-8 # Banner file encoding.
|
||||
banner.location=classpath:banner.txt # Banner file location.
|
||||
banner.image.location=classpath:banner.gif # Banner image file location (jpg or png can also be used).
|
||||
banner.image.width= # Width of the banner image in chars (default 76)
|
||||
banner.image.height= # Height of the banner image in chars (default based on image height)
|
||||
banner.image.margin= # Left hand image margin in chars (default 2)
|
||||
banner.image.invert= # Whether images should be inverted for dark terminal themes (default false)
|
||||
|
||||
# LOGGING
|
||||
logging.config= # Location of the logging configuration file. For instance, `classpath:logback.xml` for Logback
|
||||
logging.exception-conversion-word=%wEx # Conversion word used when logging exceptions.
|
||||
@@ -66,6 +57,15 @@ content into your application. Rather, pick only the properties that you need.
|
||||
# AUTO-CONFIGURATION
|
||||
spring.autoconfigure.exclude= # Auto-configuration classes to exclude.
|
||||
|
||||
# BANNER
|
||||
spring.banner.charset=UTF-8 # Banner file encoding.
|
||||
spring.banner.location=classpath:banner.txt # Banner file location.
|
||||
spring.banner.image.location=classpath:banner.gif # Banner image file location (jpg or png can also be used).
|
||||
spring.banner.image.width= # Width of the banner image in chars (default 76)
|
||||
spring.banner.image.height= # Height of the banner image in chars (default based on image height)
|
||||
spring.banner.image.margin= # Left hand image margin in chars (default 2)
|
||||
spring.banner.image.invert= # Whether images should be inverted for dark terminal themes (default false)
|
||||
|
||||
# SPRING CORE
|
||||
spring.beaninfo.ignore=true # Whether to skip search of BeanInfo classes.
|
||||
|
||||
|
||||
@@ -92,11 +92,11 @@ the `debug` property as follows:
|
||||
[[boot-features-banner]]
|
||||
=== Customizing the Banner
|
||||
The banner that is printed on start up can be changed by adding a `banner.txt` file to
|
||||
your classpath or by setting the `banner.location` property to the location of such a
|
||||
file. If the file has an encoding other than UTF-8, you can set `banner.charset`. In
|
||||
addition to a text file, you can also add a `banner.gif`, `banner.jpg`, or `banner.png`
|
||||
image file to your classpath or set the `banner.image.location` property. Images are
|
||||
converted into an ASCII art representation and printed above any text banner.
|
||||
your classpath or by setting the `spring.banner.location` property to the location of such
|
||||
a file. If the file has an encoding other than UTF-8, you can set `spring.banner.charset`.
|
||||
In addition to a text file, you can also add a `banner.gif`, `banner.jpg`, or `banner.png`
|
||||
image file to your classpath or set the `spring.banner.image.location` property. Images
|
||||
are converted into an ASCII art representation and printed above any text banner.
|
||||
|
||||
Inside your `banner.txt` file, you can use any of the following placeholders:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user