类 ResourceBanner
java.lang.Object
org.springframework.boot.ResourceBanner
- 所有已实现的接口:
Banner
Banner implementation that prints from a source text
Resource
.- 从以下版本开始:
- 1.2.0
- 作者:
- Phillip Webb, Vedran Pavic, Toshiaki Maki, Krzysztof Krason, Moritz Halbritter
-
嵌套类概要
从接口继承的嵌套类/接口 org.springframework.boot.Banner
Banner.Mode
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明protected String
getApplicationTitle
(Class<?> sourceClass) Return the application title that should be used for the source class.protected String
getApplicationVersion
(Class<?> sourceClass) 已过时, 待删除: 此 API 元素将从以后的版本中删除。since 3.4.0 for removal in 4.0.0protected String
protected List
<PropertyResolver> getPropertyResolvers
(Environment environment, Class<?> sourceClass) Return a mutable list of thePropertyResolver
instances that will be used to resolve placeholders.void
printBanner
(Environment environment, Class<?> sourceClass, PrintStream out) Print the banner to the specified print stream.
-
构造器详细资料
-
ResourceBanner
-
-
方法详细资料
-
printBanner
从接口复制的说明:Banner
Print the banner to the specified print stream.- 指定者:
printBanner
在接口中Banner
- 参数:
environment
- the spring environmentsourceClass
- the source class for the applicationout
- the output print stream
-
getPropertyResolvers
protected List<PropertyResolver> getPropertyResolvers(Environment environment, Class<?> sourceClass) Return a mutable list of thePropertyResolver
instances that will be used to resolve placeholders.- 参数:
environment
- the environmentsourceClass
- the source class- 返回:
- a mutable list of property resolvers
-
getApplicationTitle
Return the application title that should be used for the source class. By default will usePackage.getImplementationTitle()
.- 参数:
sourceClass
- the source class- 返回:
- the application title
-
getApplicationVersion
@Deprecated(since="3.4.0", forRemoval=true) protected String getApplicationVersion(Class<?> sourceClass) 已过时, 待删除: 此 API 元素将从以后的版本中删除。since 3.4.0 for removal in 4.0.0Returns the application version.- 参数:
sourceClass
- the source class- 返回:
- the application version or
null
if unknown
-
getBootVersion
-