V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
• 请不要在回答技术问题时复制粘贴 AI 生成的内容
gopoor
V2EX  ›  程序员

一个 spring-boot-starter-nobug —— 佛祖保佑,程序永无 bug

  •  
  •   gopoor · Oct 6, 2020 · 2828 views
    This topic created in 2034 days ago, the information mentioned may be changed or developed.

    一个 spring-boot-starter 项目,听说有保佑程序无 bug 的效果 😆

    使用方法: pom.xml 配置

    <dependency>
        <groupId>com.github.taoristor</groupId>
        <artifactId>spring-boot-starter-nobug</artifactId>
        <version>0.0.1</version>
    </dependency>
    

    配置 application.properties

    spring.nobug.forever=true
    

    或者 配置 application.yml

    spring:
      nobug:
        forever: true
    

    使用效果 (启动过程中随机挑选一副内置 ascii 文件打印出来):

    example

    kaiki
        1
    kaiki  
       Oct 6, 2020
    可以加入雍正吗?感觉比佛祖管用点
    qwerthhusn
        2
    qwerthhusn  
       Oct 6, 2020
    是输出到 Console 还是 log ?
    spring.main.banner-mode=log
    spring.main.banner-mode=console
    学一下 Spring Boot 把字符画变得可控制就高大上了
    springmarker
        3
    springmarker  
       Oct 6, 2020
    SpringBoot 不是能自定义 Banner 吗?还可以定义为 GIF 呢
    danbai
        4
    danbai  
    PRO
       Oct 6, 2020
    在 resources 下创建 banner.txt 就行 在里面写上输出的内容
    Cbdy
        5
    Cbdy  
       Oct 6, 2020 via Android
    参考这个命名规范
    {module_name}-spring-boot-starter
    danbai
        6
    danbai  
    PRO
       Oct 6, 2020
    开头加上${AnsiColor.BRIGHT_YELLOW} 更棒
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2532 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 43ms · UTC 08:26 · PVG 16:26 · LAX 01:26 · JFK 04:26
    ♥ Do have faith in what you're doing.