๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ
Spring

์Šคํ”„๋ง ๋ถ€ํŠธ ๋ฐฐ๋„ˆ ์ ์šฉํ•˜๊ธฐ(+ ๋ณ€ํ™˜ ์‚ฌ์ดํŠธ ์ถ”์ฒœ ๋ฐ color ๋ณ€๊ฒฝ)

by Leica 2021. 8. 31.
๋ฐ˜์‘ํ˜•

 

์‹ค๋ฌด์—์„œ ๋ชจ ์„œ๋น„์Šค๋ฅผ ์šด์˜ ๊ฐœ๋ฐœ ํ•˜๋˜ ์ค‘.. ํ•œ ์Šคํ”„๋ง ๋ถ€ํŠธ ํ”„๋กœ์ ํŠธ๋ฅผ ๋กœ์ปฌ์—์„œ ๊ธฐ๋™ํ• ๋•Œ๋งˆ๋‹ค ๋ฌด์–ธ๊ฐ€ ๋ฐ‹๋ฐ‹ํ•จ์„ ๋Š๋ผ๊ณค ํ–ˆ๋Š”๋ฐ

๊ทธ ๋Š๋‚Œ์˜ ์ด์œ ๋Š” ๋ฐ”๋กœ ๋ฐฐ๋„ˆ์˜€๋‹ค.

 

์Šคํ”„๋ง ๋ถ€ํŠธ ๊ธฐ๋ณธ ๋ฐฐ๋„ˆ

๊ธฐ๋™ํ•  ๋•Œ ๋งˆ๋‹ค ์ฝ˜์†”์— ์ด๋Ÿฐ ๋ฉ‹๋“œ๋Ÿฌ์ง€์ง€ ์•Š์€ ๊ธฐ๋ณธ ๋ฐฐ๋„ˆ๊ฐ€ ์ฐํ˜”๋‹ค.

์ด ํ”„๋กœ์ ํŠธ๋Š” ์ตœ๊ทผ์— ์Šคํ”„๋ง ๋ถ€ํŠธ๋กœ ์ „ํ™˜๋๊ณ , ์ „ํ™˜ ๋‹น์‹œ ๋ฐฐ๋„ˆ ๋ถ€๋ถ„์€ ๋”ฑํžˆ ์†๋ณด์ง€ ์•Š์•˜๊ธฐ ๋•Œ๋ฌธ์ด๋‹ค.

๋ง˜์— ๋“ค์ง€ ์•Š์•„..

๊ทธ๋Ÿผ, ์Šคํ”„๋ง ๋ถ€ํŠธ ํ”„๋กœ์ ํŠธ์˜ ๋ฐฐ๋„ˆ๋ฅผ ๋ฐ”๊ฟ”๋ณด์ž.

 

์Šคํ”„๋ง ๋ถ€ํŠธ ๋ฐฐ๋„ˆ ๋ณ€๊ฒฝ - banner.txt

์Šคํ”„๋ง ๋ถ€ํŠธ๋Š” ๊ธฐ๋ณธ์ ์œผ๋กœ resources/banner.txt๊ฐ€ ์กด์žฌํ•˜๋ฉด ํ•ด๋‹น ํ…์ŠคํŠธ๋ฅผ ๊ธฐ๋™ ์‹œ ๋ฐฐ๋„ˆ๋กœ ๋ฟŒ๋ ค์ค€๋‹ค.

ํŒŒ์ผ์„ ๋งŒ๋“ค๊ณ  ๋‚ด์šฉ์„ ์ž‘์„ฑํ•œ๋‹ค.

 

 

๐Ÿ“„ banner.txt

====================
My Banner
====================

 

์ด์ œ ๋‹ค์‹œ ์• ํ”Œ๋ฆฌ์ผ€์ด์…˜์„ ๊ธฐ๋™ํ•ด๋ณด๋ฉด ์Šคํ”„๋ง ๋ถ€ํŠธ ๊ธฐ๋ณธ ๋ฐฐ๋„ˆ๊ฐ€ ์‚ฌ๋ผ์ง€๊ณ  ์ถ”๊ฐ€ํ•œ ๋ฐฐ๋„ˆ๊ฐ€ ์ฝ˜์†”์— ์ฐํžˆ๋Š” ๊ฒƒ์„ ๋ณผ ์ˆ˜ ์žˆ๋‹ค.

 

๐Ÿ–ฅ ์‹คํ–‰ ๊ฒฐ๊ณผ

 

๋‚˜๋„, ์ด ํฌ์ŠคํŒ…์„ ๋ณด๋Š” ๋‹น์‹ ๋„ ์ด๋ฅผ ์›ํ•˜๋Š” ๊ฒƒ์€ ์•„๋‹ ๊ฒƒ์ด๋‹ค.

ํ…์ŠคํŠธ๋ฅผ ์˜ˆ์œ ๋ชจ์–‘์œผ๋กœ ๋ฐ”๊ฟ”์ฃผ๋Š” ํˆด์„ ์‚ฌ์šฉํ•ด์„œ ๋ฐฐ๋„ˆ๋ฅผ ๋ฐ”๊ฟ”๋ณด์ž.

 

Text to ASCII Art

ํ…์ŠคํŠธ๋ฅผ ASCII art๋กœ ๋ณ€๊ฒฝํ•ด์ฃผ๋Š” ํˆด์€ ๊ตฌ๊ธ€๋งํ•ด๋ณด๋ฉด ๋งŽ๋‹ค.

'text to ascii art', 'spring boot banner generator' ๋“ฑ์œผ๋กœ ๊ฒ€์ƒ‰ํ•ด๋ณด์ž.

 

๊ทธ ์ค‘ ๋‚˜๋Š” ์•„๋ž˜ ์‚ฌ์ดํŠธ๋ฅผ ์‚ฌ์šฉํ–ˆ๋‹ค.

 

https://devops.datenkollektiv.de/banner.txt/index.html

 

 

Banner Text์— plain text๋ฅผ ์ž…๋ ฅํ•˜๊ณ  Banner Font์—์„œ ์Šคํƒ€์ผ์„ ์„ ํƒํ•˜๋ฉด ํ•˜๋‹จ์— ๋ณ€ํ™˜๋œ ํ…์ŠคํŠธ๊ฐ€ ๋ฐ”๋กœ ์ถœ๋ ฅ๋œ๋‹ค.

 

์ด๋Ÿฐ ๊ท€์—ฌ์šด ์Šคํƒ€์ผ๋„ ์žˆ๋‹ค.

 

dancingfont ์Šคํƒ€์ผ

 

bear ์Šคํƒ€์ผ

 

์›ํ•˜๋Š” ์Šคํƒ€์ผ์„ ์„ ํƒํ•œ ํ›„ ๋ณ€ํ™˜ ๊ฒฐ๊ณผ๋ฅผ ๋ณต์‚ฌํ•ด์„œ ์•„๊นŒ ๋งŒ๋“  banner.txt์— ๋„ฃ๋Š”๋‹ค.

 

๐Ÿ“„ banner.txt (์ด๊ฑด train ์Šคํƒ€์ผ์ด๋‹ค.)

 __  __     _  _               ___                                                
|  \/  |   | || |     o O O   | _ )    __ _     _ _      _ _       ___       _ _  
| |\/| |    \_, |    o        | _ \   / _` |   | ' \    | ' \     / -_)     | '_| 
|_|__|_|   _|__/    TS__[O]   |___/   \__,_|   |_||_|   |_||_|    \___|    _|_|_  
_|"""""| _| """"|  {======| _|"""""| _|"""""| _|"""""| _|"""""| _|"""""| _|"""""| 
"`-0-0-' "`-0-0-' ./o--000' "`-0-0-' "`-0-0-' "`-0-0-' "`-0-0-' "`-0-0-' "`-0-0-'

 

๐Ÿ–ฅ ์‹คํ–‰ ๊ฒฐ๊ณผ

 

์Šคํ”„๋ง ๋ถ€ํŠธ ๋ฒ„์ „ ์ถ”๊ฐ€

banner.txt์—๋Š” ๋ช‡๊ฐ€์ง€ ๋ฏธ๋ฆฌ ์ •์˜๋œ ๊ฐ’์„ ๋ถˆ๋Ÿฌ๋‹ค ์“ธ ์ˆ˜ ์žˆ๋‹ค.

์Šคํ”„๋ง ๋ถ€ํŠธ ๋ฒ„์ „์„ ์ถ”๊ฐ€ํ•˜๋ ค๋ฉด ๋‹ค์Œ๊ณผ ๊ฐ™์ด ${spring-boot.version}๋ฅผ ์ถ”๊ฐ€ํ•˜๋ฉด ๋œ๋‹ค.

 

๐Ÿ“„ banner.txt

 __  __     _  _               ___
|  \/  |   | || |     o O O   | _ )    __ _     _ _      _ _       ___       _ _
| |\/| |    \_, |    o        | _ \   / _` |   | ' \    | ' \     / -_)     | '_|
|_|__|_|   _|__/    TS__[O]   |___/   \__,_|   |_||_|   |_||_|    \___|    _|_|_
_|"""""| _| """"|  {======| _|"""""| _|"""""| _|"""""| _|"""""| _|"""""| _|"""""|
"`-0-0-' "`-0-0-' ./o--000' "`-0-0-' "`-0-0-' "`-0-0-' "`-0-0-' "`-0-0-' "`-0-0-'
 :: Spring Boot ${spring-boot.version} ::

 

ํ…์ŠคํŠธ ์ƒ‰ ๋ณ€๊ฒฝ

${AnsiColor}๋ฅผ ์‚ฌ์šฉํ•ด์„œ ๋ฐฐ๋„ˆ์˜ ํ…์ŠคํŠธ ์ƒ‰์ƒ๋„ ๋ณ€๊ฒฝํ•  ์ˆ˜ ์žˆ๋‹ค.

 

๐Ÿ“„ banner.txt

${AnsiColor.RED} __  __     _  _               ___
${AnsiColor.BRIGHT_YELLOW}|  \/  |   | || |     o O O   | _ )    __ _     _ _      _ _       ___       _ _
${AnsiColor.BRIGHT_GREEN}| |\/| |    \_, |    o        | _ \   / _` |   | ' \    | ' \     / -_)     | '_|
${AnsiColor.GREEN}|_|__|_|   _|__/    TS__[O]   |___/   \__,_|   |_||_|   |_||_|    \___|    _|_|_
${AnsiColor.BRIGHT_CYAN}_|"""""| _| """"|  {======| _|"""""| _|"""""| _|"""""| _|"""""| _|"""""| _|"""""|
${AnsiColor.BLUE}"`-0-0-' "`-0-0-' ./o--000' "`-0-0-' "`-0-0-' "`-0-0-' "`-0-0-' "`-0-0-' "`-0-0-'
 :: Spring Boot ${spring-boot.version} ::

 

IDE์˜ ๋„์›€์„ ๋ฐ›์•„ ์ž๋™์™„์„ฑ ๊ฒฐ๊ณผ๋ฅผ ํ†ตํ•ด ์ƒ‰์„ ๋ฏธ๋ฆฌ ๋ณด๊ณ  ํŽธํ•˜๊ฒŒ ๊ณ ๋ฅผ ์ˆ˜ ์žˆ๋‹ค.

 

์Šคํ”„๋ง ๋ถ€ํŠธ ๋ฐฐ๋„ˆ์— ๋ฒ„์ „ ์ •๋ณด๋ฅผ ์ถ”๊ฐ€ํ•˜๊ณ  ์ƒ‰์„ ๋ณ€๊ฒฝํ•œ ์‹คํ–‰ ๊ฒฐ๊ณผ๋Š” ๋‹ค์Œ๊ณผ ๊ฐ™๋‹ค.

 

๐Ÿ–ฅ ์‹คํ–‰ ๊ฒฐ๊ณผ

 

ASCII Art

๋งˆ์ง€๋ง‰์œผ๋กœ text to ASCII art ์™ธ์—๋„ ํ…์ŠคํŠธ๋กœ ์ด๋ฃจ์–ด์ง„ ๊ทธ๋ฆผ(์ด๋ชจํ‹ฐ์ฝ˜)์„ ์ฐพ๊ธฐ ์ข‹์€ ์‚ฌ์ดํŠธ๋ฅผ ์ถ”์ฒœํ•˜๋ฉฐ ๋งˆ์น˜๊ฒ ๋‹ค.

 

https://www.asciiart.eu/

 

์ด ์‚ฌ์ดํŠธ์—์„œ๋Š” ์ด๋Ÿฐ ์žฌ๋ฐŒ๋Š” ํ…์ŠคํŠธ๋“ค์„ ์ฐพ์„ ์ˆ˜ ์žˆ๋‹ค.

 

๊ตฌ๋ฆ„ ํ…์ŠคํŠธ ์ด๋ชจํ‹ฐ์ฝ˜

                                        ___    ,'""""'.
                                    ,"""   """"'      `.
                                   ,'        _.         `._
                                  ,'       ,'              `"""'.
                                 ,'    .-""`.    ,-'            `.
                                ,'    (        ,'                :
                              ,'     ,'           __,            `.
                        ,""""'     .' ;-.    ,  ,'  \             `"""".
                      ,'           `-(   `._(_,'     )_                `.
                     ,'         ,---. \ @ ;   \ @ _,'                   `.
                ,-""'         ,'      ,--'-    `;'                       `.
               ,'            ,'      (      `. ,'                          `.
               ;            ,'        \    _,','                            `.
              ,'            ;          `--'  ,'                              `.
             ,'             ;          __    (                    ,           `.
             ;              `____...  `78b   `.                  ,'           ,'
             ;    ...----'''' )  _.-  .d8P    `.                ,'    ,'    ,'
_....----''' '.        _..--"_.-:.-' .'        `.             ,''.   ,' `--'
              `" mGk "" _.-'' .-'`-.:..___...--' `-._      ,-"'   `-'
        _.--'       _.-'    .'   .' .'               `"""""
  __.-''        _.-'     .-'   .'  /
 '          _.-' .-'  .-'        .'
        _.-'  .-'  .-' .'  .'   /
    _.-'      .-'   .-'  .'   .'
_.-'       .-'    .'   .'    /
       _.-'    .-'   .'    .'
    .-'            .'

 

์Šค๋ˆ„ํ”ผ ํ…์ŠคํŠธ ์ด๋ชจํ‹ฐ์ฝ˜ (๊ท€์—ฌ์›€ ใ… )

 \,`/ / 
 _)..  `_
( __  -\
    '`.                  
   ( \>_-_,   
   _||_ ~-/
         __                        ___________________________________
       _( _)_                     /    I know Beethoven was great,    \
      ( _) ( )            _____  |      but do you have to say it      |
     (_)    (_)          @@@@@@@ |  every day on rec.music.classical?  |
   __/     . |          @@@  .|_  \ __________________________________/
 /    \  --\_) _________@@(    _) |/                  | |         |
|   /\  \__/)-/_______(@@@@__-/                       | |        |'
|--|**|\__ --|        (___)   \___ /\  ##             !_!-v----v-"
|*****|__ |____________| \    |  /    \##    __--"""i i""""""""""i
 \*(#####)  ||      ||    \___|____/\__##   !_______! !__________!
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""

 

์ขŒ์ธก์— ์นดํ…Œ๊ณ ๋ฆฌ ๋ฉ”๋‰ด๊ฐ€ ์žˆ๊ธด ํ•˜์ง€๋งŒ ๋‚ด๊ฐ€ ๋ชป์ฐพ์€๊ฑด์ง€ ํ†ตํ•ฉ๊ฒ€์ƒ‰ ๊ธฐ๋Šฅ์€ ์—†๋Š” ๊ฒƒ ๊ฐ™์•„ ๋‚˜๋Š” ์•„๋ž˜์ฒ˜๋Ÿผ ๊ตฌ๊ธ€์˜ site ๊ฒ€์ƒ‰์„ ์‚ฌ์šฉํ•˜์—ฌ ์›ํ•˜๋Š” ๊ทธ๋ฆผ(ํ…์ŠคํŠธ)๋ฅผ ์ฐพ๋Š”๋‹ค.

 

book site:www.asciiart.eu

 

 

์ •๋ง ์žฌ๋ฐŒ๋Š” ์‚ฌ์ดํŠธ์ธ ๊ฒƒ ๊ฐ™๋‹ค.

์—ฌ๊ธฐ์„œ ์›ํ•˜๋Š” ๊ฒƒ, ํ”„๋กœ์ ํŠธ์— ์•Œ๋งž์€ ASCII art๋ฅผ ์ฐพ์•„ ๋ฐฐ๋„ˆ์— ์ถ”๊ฐ€ํ•ด๋ณด์ž.

 

๐Ÿ“„ banner.txt

          O
         _|_
${AnsiColor.RED}   ,_.-_' _ '_-._,      __  __     _  _               ___
${AnsiColor.BRIGHT_YELLOW}    \ (')(.)(') /      |  \/  |   | || |     o O O   | _ )    __ _     _ _      _ _       ___       _ _
${AnsiColor.BRIGHT_GREEN} _,  `\_-===-_/`  ,_   | |\/| |    \_, |    o        | _ \   / _` |   | ' \    | ' \     / -_)     | '_|
${AnsiColor.GREEN}>  |----"""""----|  <  |_|__|_|   _|__/    TS__[O]   |___/   \__,_|   |_||_|   |_||_|    \___|    _|_|_
${AnsiColor.BRIGHT_CYAN}`""`--/   _-@-\--`""`  _|"""""| _| """"|  {======| _|"""""| _|"""""| _|"""""| _|"""""| _|"""""| _|"""""|
${AnsiColor.BLUE}     |===L_I===|       "`-0-0-' "`-0-0-' ./o--000' "`-0-0-' "`-0-0-' "`-0-0-' "`-0-0-' "`-0-0-' "`-0-0-'
      \       /
      _\__|__/_
     `""""`""""`
 :: Spring Boot ${spring-boot.version} ::

${AnsiColor}๋ฅผ ๋„ฃ์–ด์„œ ๋‹ค์†Œ ๊นจ์ ธ๋ณด์ด์ง€๋งŒ ์‹คํ–‰ํ•˜๋ฉด ์ œ๋Œ€๋กœ ๋‚˜์˜จ๋‹ค.

 

๐Ÿ–ฅ ์‹คํ–‰ ๊ฒฐ๊ณผ

์˜ˆ์‹œ์—์„œ๋Š” ํ† ์ด์Šคํ† ๋ฆฌ์˜ ์•Œ๋ฆฐ์ด ์žˆ๊ธธ๋ž˜ ์ถ”๊ฐ€ํ•ด๋ดค๋‹ค. (์‹ค์ œ ํ”„๋กœ์ ํŠธ์—๋Š” ์•Œ๋ฆฐ ์•ˆ๋„ฃ์Œ.. ^^ใ…Ž)

 

๋•๋ถ„์— ํ”„๋กœ์ ํŠธ๋ฅผ ๊ตฌ๋™ํ•  ๋•Œ ๋งˆ๋‹ค ๊ธฐ๋ถ„์ด ์•ฝ๊ฐ„ ์ข‹์•„์กŒ๋‹ค.

 

์ฐธ๊ณ 

https://www.baeldung.com/spring-boot-color-banner

 

๋ฐ˜์‘ํ˜•

๋Œ“๊ธ€