【发布时间】:2014-12-22 12:53:19
【问题描述】:
有没有办法禁用可爱但非常明显的ASCII Spring boot logo:
. ____ _ __ _ _
/\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
\\/ ___)| |_)| | | | | || (_| | ) ) ) )
' |____| .__|_| |_|_| |_\__, | / / / /
=========|_|==============|___/=/_/_/_/
:: Spring Boot :: (v1.1.8.RELEASE)
...每次运行 Spring Boot 应用程序时都在 STDOUT 中转储?
我在我的 logback.xml 中将所有日志记录切换为 ERROR,但什么也没做:
<root level="ERROR">
<appender-ref ref="STDOUT" />
</root>
编辑:在文档中它不称为“徽标”。搜索友好字词是“横幅”。
【问题讨论】:
-
将
spring.main.show_banner=false添加到您的application.properties。 -
据说“spring.main.show_banner=false”已经被弃用了
标签: java spring-boot logback