添加logback配置
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<include resource="org/springframework/boot/logging/logback/base.xml"/>
<logger name="org.springframework" level="OFF"/>
<logger name="org.apache.flink" level="ERROR"/>
<logger name="akka.event.slf4j" level="ERROR"/>
<!-- 如果还有其他日志,则可以负责上一行,将相关的包名写在name中 -->
</configuration>
修改application.properties配置
#banner下面的日志
logging.level.org.springframework=off
#去除banner下面的日志
logging.level.root=off
#去除springboot启动的banner
spring.main.banner-mode=off