Module bus.starter

Class BannerPrinter

java.lang.Object
org.miaixz.bus.spring.banner.BannerPrinter

public class BannerPrinter extends Object
处理 Spring Boot Banner 打印,确保单次打印,优先级:Banner - banner.txt - TextBanner
Since:
Java 17+
Author:
Kimi Liu
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    printBanner(org.springframework.boot.SpringApplication app, org.springframework.core.env.ConfigurableEnvironment env)
    打印 Banner,禁用默认打印,优先检查已有 Banner、banner.txt 或 TextBanner。

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • BannerPrinter

      public BannerPrinter()
  • Method Details

    • printBanner

      public void printBanner(org.springframework.boot.SpringApplication app, org.springframework.core.env.ConfigurableEnvironment env)
      打印 Banner,禁用默认打印,优先检查已有 Banner、banner.txt 或 TextBanner。
      Parameters:
      app - SpringApplication 实例
      env - Spring 环境配置