BannerMode enum
Where the startup banner goes: the console, the log, or nowhere.
Usually set with the property spring.main.banner-mode (off,
console or log), which wins over SpringApplication(bannerMode:).
Any other property value fails the start. log is useful when the
console is not read but the log file is.
# A service whose output goes to a log collector: no ASCII art.
spring.main.banner-mode=off
Spring (Java): Banner.Mode, set the same way.
Values
- off → const BannerMode
-
No banner is printed. The property value
falsemeans this too. - console → const BannerMode
-
Printed with
print(Spring Boot'sSystem.out). The default. - log → const BannerMode
-
Logged at INFO under the logger
spring_boot_dart.SpringApplication, so it goes wherever the log goes (a log file, for example).
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- name → String
-
Available on Enum, provided by the EnumName extension
The name of the enum value.no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
-
values
→ const List<
BannerMode> - A constant List of the values in this enum, in order of their declaration.