zoukankan      html  css  js  c++  java
  • springboot之自定义banner

    1src/test/resources下面自定义banner.txt,我这里用的是佛祖保佑的banner,复制进去就可以了,当然,也可以在以下三个网站中生成banner

    ${AnsiColor.BRIGHT_YELLOW}
    ////////////////////////////////////////////////////////////////////
    // _ooOoo_ //
    // o8888888o //
    // 88" . "88 //
    // (| ^_^ |) //
    // O = /O //
    // ____/`---'\____ //
    // .' \| |// `. //
    // / \||| : |||// //
    // / _||||| -:- |||||- //
    // | | \ - /// | | //
    // | \_| ''---/'' | | //
    // .-\__ `-` ___/-. / //
    // ___`. .' /--.-- `. . ___ //
    // ."" '< `.___\_<|>_/___.' >'"". //
    // | | : `- \`.;` _ /`;.`/ - ` : | | //
    // `-. \_ __ /__ _/ .-` / / //
    // ========`-.____`-.___\_____/___.-`____.-'======== //
    // `=---=' //
    // ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ //
    // 佛祖保佑 永不宕机 永无BUG //
    ////////////////////////////////////////////////////////////////////

    2src/test/resources下的application中添加下面的配置

    #通过触发器,自定义banner
    spring.banner.location=banner.txt

    3pom.xml中添加web依赖

    <!-- web依赖的jar -->
    <dependency>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter-web</artifactId>
    </dependency>

    4运行即可在控制台看见banner

  • 相关阅读:
    新浪微博采用Oauth发送图片和文字
    android proguard也有弱点
    POJ 2376
    POJ 3259
    POJ 2253
    POJ 1062
    POJ 2299
    POJ 2186
    POJ 1860
    POJ 2823
  • 原文地址:https://www.cnblogs.com/zhushilai/p/13614867.html
Copyright © 2011-2022 走看看