类 ResourceBanner

java.lang.Object
org.springframework.boot.ResourceBanner
所有已实现的接口:
Banner

public class ResourceBanner extends Object implements Banner
Banner implementation that prints from a source text Resource.
从以下版本开始:
1.2.0
作者:
Phillip Webb, Vedran Pavic, Toshiaki Maki, Krzysztof Krason, Moritz Halbritter
  • 构造器详细资料

    • ResourceBanner

      public ResourceBanner(Resource resource)
  • 方法详细资料

    • printBanner

      public void printBanner(Environment environment, Class<?> sourceClass, PrintStream out)
      从接口复制的说明: Banner
      Print the banner to the specified print stream.
      指定者:
      printBanner 在接口中 Banner
      参数:
      environment - the spring environment
      sourceClass - the source class for the application
      out - the output print stream
    • getPropertyResolvers

      protected List<PropertyResolver> getPropertyResolvers(Environment environment, Class<?> sourceClass)
      Return a mutable list of the PropertyResolver instances that will be used to resolve placeholders.
      参数:
      environment - the environment
      sourceClass - the source class
      返回:
      a mutable list of property resolvers
    • getApplicationTitle

      protected String getApplicationTitle(Class<?> sourceClass)
      Return the application title that should be used for the source class. By default will use Package.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.0
      Returns the application version.
      参数:
      sourceClass - the source class
      返回:
      the application version or null if unknown
    • getBootVersion

      protected String getBootVersion()