久久r热视频,国产午夜精品一区二区三区视频,亚洲精品自拍偷拍,欧美日韩精品二区

您的位置:首頁技術文章
文章詳情頁

SpringBoot個性化啟動Banner設置方法解析

瀏覽:24日期:2023-05-28 09:57:48

1.添加Banner.txt文件

SpringBoot個性化啟動Banner設置方法解析

. ____ _ __ _ _ / / ___’_ __ _ _(_)_ __ __ _ ( ( )___ | ’_ | ’_| | ’_ / _` | / ___)| |_)| | | | | || (_| | ) ) ) ) ’ |____| .__|_| |_|_| |___, | / / / / =========|_|==============|___/=/_/_/_/ :: tianheng Spring Boot :: (v2.0.5.RELEASE)

2.修改application.properties文件

#端口號server.port=8090#配置bannner地址spring.banner.location=banner.txt

3.添加啟動類

package top.ytheng.demo;import org.springframework.boot.SpringApplication;import org.springframework.boot.autoconfigure.SpringBootApplication;@SpringBootApplication //等于下面3個//@SpringBootConfiguration//@EnableAutoConfiguration//@ComponentScanpublic class DemoApplication { public static void main(String[] args) { SpringApplication.run(DemoApplication.class, args); }}

4.右鍵Run As啟動項目,如圖所示

SpringBoot個性化啟動Banner設置方法解析

以上就是本文的全部內容,希望對大家的學習有所幫助,也希望大家多多支持好吧啦網。

標簽: Spring
相關文章:
主站蜘蛛池模板: 高青县| 额敏县| 天全县| 石棉县| 开阳县| 奉节县| 民县| 孟村| 墨脱县| 蕉岭县| 大洼县| 丰镇市| 靖远县| 犍为县| 聂荣县| 新余市| 江川县| 化州市| 本溪| 漳浦县| 皋兰县| 聊城市| 贵定县| 繁峙县| 汪清县| 湘阴县| 荣昌县| 海伦市| 万山特区| 繁昌县| 沭阳县| 吉首市| 安阳县| 汉川市| 灌云县| 黄浦区| 中西区| 比如县| 仙游县| 和平县| 前郭尔|