[SPRING BOOT TIP] 3. BANNER.txt 를 이쁘게 만들어 보자
1. banner.txt??
- 위 이미지를 이쁘게 꾸며보자!.
2. 변경할 파일
1) src/main/resources/banner.txt
- banner.txt 내에 원하는 텍스트를 넣으면 된다.
2) 파일 위치도 변경하기
(1) 기본 설정(application.yml or application.propertioes)
banner.location=classpath:banner.txt # Banner file location.
- 원하는 경로로 변경하면 된다.
3. 이쁜 text 만들기
1) https://devops.datenkollektiv.de/banner.txt/index.html
2) http://patorjk.com/software/taag/#p=display&f=Ogre&t=Memorynotfound.com
4. 결과
- 위에서 만든 텍스트를 banner.txt 파일에 넣으면 아래와 같이 볼 수 있다.
5. 좀더 이쁘게
1) 컬러도 적용 가능하다.
2) 아래 링크를 들어가면 Spring version 등의 값들을 노출 시킬 수 있다.
- 링크
3) 이미지를 넣을 수도 있다.
banner.image.location=classpath:banner.gif # Banner image file location (jpg/png can also be used).
banner.image.width= # Width of the banner image in chars (default 76)
banner.image.height= # Height of the banner image in chars (default based on image height)
banner.image.margin= # Left hand image margin in chars (default 2)
banner.image.invert= # If images should be inverted for dark terminal themes (default false)
4) 이미지를 ancii 로 변경할 수 있다.
- 링크