이 섹션에서는 스프링 부트에 대해 자세히 설명합니다. 여기에서 사용하고 사용자 지정할 수있는 주요 기능에 대해 배울 수 있습니다. 아직 그렇게하지 않았다면 " 제 2 부,시작하기 " 및 "제 3 부, 스프링 부트 사용하기 "단원 을 읽고 기본적인 기초 지식을 얻을 수 있습니다.
Copy public static void main ( String [] args) {
SpringApplication . run ( MySpringConfiguration . class , args);
}
응용 프로그램이 시작되면 다음 출력과 비슷한 내용이 표시됩니다.
Copy . ____ _ __ _ _
/\\ / ___ '_ __ _ _(_)_ __ __ _ \ \ \ \
( ( )\___ | ' _ | '_| | ' _ \/ _ ` | \ \ \ \
\\ / ___ ) | | _ ) | | | | | || ( _ | | ) ) ) )
' |____| .__|_| |_|_| |_\__, | / / / /
=========|_|==============|___/=/_/_/_/
:: Spring Boot :: v2.1.5.RELEASE
2013-07-31 00:08:16.117 INFO 56603 --- [ main] o.s.b.s.app.SampleApplication : Starting SampleApplication v0.1.0 on mycomputer with PID 56603 (/apps/myapp.jar started by pwebb)
2013-07-31 00:08:16.166 INFO 56603 --- [ main] ationConfigServletWebServerApplicationContext : Refreshing org.springframework.boot.web.servlet.context.AnnotationConfigServletWebServerApplicationContext@6e5a8246: startup date [Wed Jul 31 00:08:16 PDT 2013]; root of context hierarchy
2014-03-04 13:09:54.912 INFO 41370 --- [ main] .t.TomcatServletWebServerFactory : Server initialized with port: 8080
2014-03-04 13:09:56.501 INFO 41370 --- [ main] o.s.b.s.app.SampleApplication : Started SampleApplication in 2.992 seconds (JVM running for 3.658)