部署服务器:Liberty
java -jar spring-boot-application.jar
- >横幅按预期打印
我的banner.text
Application Name : ${application.title}
Application Version : ${application.version}
Application Formatted Version : ${application.formatted-version}
Spring Boot Version : ${spring-boot-version}
Spring Boot Formatted Version : ${spring-boot.formatted-version}
--------------------------------------------------------------------------
${AnsiColor.BRIGHT_RED} Spring boot banner customization example
-------------------------------------------------------------------------
然而,当我将此jar构建为webapp
时mvn install -Pwebapp ( maven-war-plugin)
并在Liberty Server上部署WAR - 仅打印${spring-boot.formatted-version}
。休息是空白的。
任何线索?