스프링부트 기본배너
. ____ _ __ _ _
/\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
\\/ ___)| |_)| | | | | || (_| | ) ) ) )
' |____| .__|_| |_|_| |_\__, | / / / /
=========|_|==============|___/=/_/_/_/
:: Spring Boot :: v1.3.0.BUILD-SNAPSHOT
스프링애플리케이션에서 배너와 관련된 설정
Class 정의
public static void main(String[] args) {
SpringApplication app = new SpringApplication(MySpringConfiguration.class);
app.setShowBanner(false);
app.run(args);
}
외부설정 정의
spring.main.show_banner=false
배너 변경
SpringBoot가 실행될때 배너를 보여주게 되는데, 이를 변경하고 싶을 때는
- banner.txt 생성
- banner.txt 파일을 root classpath(src/main/resource)에 위치
- 별도의 위치에 두고 외부설정(properties or yaml)으로
banner.location
을 선언하고 위치를 정의
배너변경 결과
11:26:18,781 |-INFO in ch.qos.logback.classic.gaffer.ConfigurationDelegate@1c4e4471 - About to instantiate appender of type [ch.qos.logback.core.ConsoleAppender]
11:26:18,783 |-INFO in ch.qos.logback.classic.gaffer.ConfigurationDelegate@1c4e4471 - Naming appender as [STDOUT]
11:26:18,921 |-WARN in ch.qos.logback.core.ConsoleAppender[STDOUT] - This appender no longer admits a layout as a sub-component, set an encoder instead.
11:26:18,921 |-WARN in ch.qos.logback.core.ConsoleAppender[STDOUT] - To ensure compatibility, wrapping your layout in LayoutWrappingEncoder.
11:26:18,921 |-WARN in ch.qos.logback.core.ConsoleAppender[STDOUT] - See also http://logback.qos.ch/codes.html#layoutInsteadOfEncoder for details
11:26:18,924 |-INFO in ch.qos.logback.classic.gaffer.ConfigurationDelegate@1c4e4471 - Setting level of logger [org.thymeleaf] to INFO
11:26:18,931 |-INFO in ch.qos.logback.classic.gaffer.ConfigurationDelegate@1c4e4471 - Setting level of logger [org.springframework.web] to DEBUG
11:26:18,931 |-INFO in ch.qos.logback.classic.gaffer.ConfigurationDelegate@1c4e4471 - Setting level of logger [org.springframework] to INFO
11:26:18,931 |-INFO in ch.qos.logback.classic.gaffer.ConfigurationDelegate@1c4e4471 - Setting level of logger [org.hibernate] to INFO
11:26:18,931 |-INFO in ch.qos.logback.classic.gaffer.ConfigurationDelegate@1c4e4471 - Setting level of logger [org.eclipse.jetty] to INFO
11:26:18,931 |-INFO in ch.qos.logback.classic.gaffer.ConfigurationDelegate@1c4e4471 - Setting level of logger [jndi] to INFO
11:26:18,934 |-INFO in ch.qos.logback.classic.gaffer.ConfigurationDelegate@1c4e4471 - Setting level of logger [ROOT] to DEBUG
11:26:18,937 |-INFO in ch.qos.logback.classic.gaffer.ConfigurationDelegate@1c4e4471 - Attaching appender named [STDOUT] to Logger[ROOT]
_ _ U ___ u _ _ U _____ u __ __ __ __ U ___ u _ _
|'| |'| \/"_ \/ | \ |"| \| ___"|/ \ \ / /U|' \/ '|u \/"_ \/ | \ |"|
/| |_| |\ | | | |<| \| |> | _|" \ V / \| |\/| |/ | | | |<| \| |>
U| _ |u.-,_| |_| |U| |\ |u | |___ U_|"|_u | | | |.-,_| |_| |U| |\ |u
|_| |_| \_)-\___/ |_| \_| |_____| |_| |_| |_| \_)-\___/ |_| \_|
// \\ \\ || \\,-.<< >>.-,//|(_ <<,-,,-. \\ || \\,-.
(_") ("_) (__) (_") (_/(__) (__)\_) (__) (./ \.) (__) (_") (_/
11:26:19 DEBUG o.s.w.c.s.StandardServletEnvironment - Adding [servletConfigInitParams] PropertySource with lowest search precedence
11:26:19 DEBUG o.s.w.c.s.StandardServletEnvironment - Adding [servletContextInitParams] PropertySource with lowest search precedence
11:26:19 DEBUG o.s.w.c.s.StandardServletEnvironment - Adding [jndiProperties] PropertySource with lowest search precedence
11:26:19 DEBUG o.s.w.c.s.StandardServletEnvironment - Adding [systemProperties] PropertySource with lowest search precedence
11:26:19 DEBUG o.s.w.c.s.StandardServletEnvironment - Adding [systemEnvironment] PropertySource with lowest search precedence
위와 같은 결과를 볼 수 있다.
참고사항
SpringBoot
이미지 to ASCII CODE image
- picascii
- TEXT-image.com
이미지를 ASCII 코드로 변경하는 기능을 제공하는 사이트
'Java > SpringBoot' 카테고리의 다른 글
SpringBoot: JavaMailSender를 이용한 메일발송기능 구현 (0) | 2015.04.13 |
---|---|
[springboot] bootrepackage 처리된 war 내에서 template file 을 찾지 못할 때 (2) | 2015.03.30 |
스프링부트 1.2.0 새로운 애노테이션, @SpringBootApplication (0) | 2015.01.20 |
Sevlert 3.x, Spring MVC MultipartFile를 이용한 업로드가 되지 않는 경우 (4) | 2015.01.19 |
spring-boot-starter-web 의존성 살펴보기 (0) | 2015.01.05 |