您的位置:首页 >SpringBoot中如何自定义Banner
发布于2023-05-11 阅读(0)
扫一扫,手机访问
1.在src/main/resources
新建banner.txt 写入信息内容
2.在application.properties
#自定义打印bannerspring.banner.location=classpath:banner.txtspring.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);
}
springboot一种全新的编程规范,其设计目的是用来简化新Spring应用的初始搭建以及开发过程,SpringBoot也是一个服务于框架的框架,服务范围是简化配置文件。
售后无忧
立即购买>office旗舰店
售后无忧
立即购买>office旗舰店
售后无忧
立即购买>office旗舰店
售后无忧
立即购买>office旗舰店
正版软件
正版软件
正版软件
正版软件
正版软件
1
2
3
7
9