1.在src/main/resources
新建banner.txt 写入信息内容
2.在application.properties
#自定义打印banner spring.banner.location=classpath:banner.txt spring.banner.charset=utf-8
3.关闭banner
public static void main(String[] args) { SpringApplication app = new SpringApplication(MySpringConfiguration.class); //app.setBannerMode(Banner.Mode.OFF); app.run(args); }
4.结果显示
微信公众号