ResourceBanner class final
A banner whose text comes from a file, such as
lib/resources/banner.txt.
SpringApplication uses it by itself when resources:banner.txt (or
the file named by spring.banner.location) exists, so applications
only write the file. ${...} placeholders in the text are resolved
against the environment, and unresolvable ones are printed as they
are. Two more are known: ${spring-boot.version} (0.4.0) and
${spring-boot.formatted-version} ( (v0.4.0)).
${spring.application.name}${spring-boot.formatted-version}
The file is read synchronously when the banner is printed. In Flutter,
where assets can only be read asynchronously, runAsync reads it
first.
Spring (Java): ResourceBanner, with the same placeholders.
- Implemented types
Constructors
- ResourceBanner(Resource resource)
-
A banner that prints the text of
resource.const
Properties
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
printBanner(
Environment environment, void out(String text)) → void -
Writes the banner through
out, which prints or logs it depending on the BannerMode. Calloutonce per line or once for the whole text.environmentis fully prepared: config files and profiles are loaded.override -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited