类 ResourceBanner
- java.lang.Object
- org.springframework.boot.ResourceBanner
- 所有已实现的接口:
Banner
public class ResourceBanner extends Object implements Banner
Banner implementation that prints from a source textResource
.- 从以下版本开始:
- 1.2.0
嵌套类概要
从接口继承的嵌套类/接口 org.springframework.boot.Banner
Banner.Mode
构造器概要
构造器 构造器 说明 ResourceBanner(org.springframework.core.io.Resource resource)
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 protected String
getApplicationTitle(Class<?> sourceClass)
protected String
getApplicationVersion(Class<?> sourceClass)
protected String
getBootVersion()
protected List<org.springframework.core.env.PropertyResolver>
getPropertyResolvers(org.springframework.core.env.Environment environment, Class<?> sourceClass)
void
printBanner(org.springframework.core.env.Environment environment, Class<?> sourceClass, PrintStream out)
Print the banner to the specified print stream.
构造器详细资料
ResourceBanner
public ResourceBanner(org.springframework.core.io.Resource resource)
方法详细资料
printBanner
public void printBanner(org.springframework.core.env.Environment environment, Class<?> sourceClass, PrintStream out)
从接口复制的说明: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<org.springframework.core.env.PropertyResolver> getPropertyResolvers(org.springframework.core.env.Environment environment, Class<?> sourceClass)
getApplicationVersion
protected String getApplicationVersion(Class<?> sourceClass)
getBootVersion
protected String getBootVersion()
getApplicationTitle
protected String getApplicationTitle(Class<?> sourceClass)