spring-boot banner.text在部署为WAR文件时无法正常工作

时间:2018-04-11 12:50:23

标签: spring-boot

部署服务器: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}。休息是空白的。

任何线索?

0 个答案:

没有答案
相关问题