修改SpringBoot啟動圖標banner的兩種方式
方式一: 將圖標文件命名為banner放在resources目錄下
文本文件banner
圖片banner
方式二:通過配置文件指定圖標路徑
指定文本圖標:spring.banner.location=classpath:相對于resources下的位置 ("classpath:"可以省略)
指定圖片作為圖標: spring.banner.image.location=classpath:相對于resources下的位置("classpath:"可以省略)
到此這篇關于修改SpringBoot啟動圖標banner的兩種方式的文章就介紹到這了,更多相關修改SpringBoot圖標banner內容請搜索腳本之家以前的文章或繼續(xù)瀏覽下面的相關文章希望大家以后多多支持腳本之家!
相關文章
解決spring boot hibernate 懶加載的問題
這篇文章主要介紹了解決spring boot hibernate 懶加載的問題,具有很好的參考價值,希望對大家有所幫助。一起跟隨小編過來看看吧2020-10-10SpringBoot整合EasyExcel實現(xiàn)Excel表格導出功能
這篇文章主要介紹了SpringBoot整合EasyExcel實現(xiàn)Excel表格導出功能,文章圍繞主題展開詳細的內容介紹,具有一定的參考價值,需要的朋友可以參考一下2022-07-07SpringBoot自動裝配Condition的實現(xiàn)
Spring4.0新增@Conditional注解,用于條件化Bean的注冊,通過實現(xiàn)Condition接口并重寫matches方法,可以控制Bean的創(chuàng)建與否,感興趣的可以了解一下2024-10-10