springboot启动时图案
时间: 2023-09-11 20:05:14 浏览: 184
在Spring Boot启动时,可以通过在application.properties文件中配置banner.txt文件的路径来显示启动图案。可以通过在application.properties中设置application.banner.location属性来指定banner.txt文件的路径。
示例配置如下:
application.banner.location=classpath:banner.txt
在banner.txt文件中可以自定义启动图案,可以使用ASCII字符、特殊字符以及颜色代码等来设计图案。你也可以使用占位符来引用其他配置信息,例如${application.version}和${spring-boot.formatted-version}来显示应用的版本信息和Spring Boot的版本信息。
通过以上配置,当应用启动时,Spring Boot会读取指定路径下的banner.txt文件,并将其显示在控制台中作为启动图案。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *2* *3* [【Spring Boot】springboot自定义系统的启动图案](https://blog.csdn.net/Black_Customer/article/details/124249095)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 100%"]
[ .reference_list ]
阅读全文
相关推荐















