스프링 스타터 프로젝트 bootweb1

Jmnote (토론 | 기여)님의 2016년 3월 10일 (목) 12:32 판 (→‎개요)

1 개요

SpringBoot 튜토리얼
스프링부트 시작하기
Spring Starter Project 튜토리얼
스프링 스타터 프로젝트 시작하기
  • "스프링 스타터 프로젝트"는 스프링부트(독립실행형) 기반임
  • 여기서는 Web 모듈 사용
웹서버 모듈(톰캣), Spring MVC 포함

2 사전작업

3 새 프로젝트

  • Package Explorer의 빈공간에서 우클릭 --- New --- Spring Starter Project
  • "New Spring Starter Project" --- Name: HelloStarter --- Package: com.example.hello --- [Next >]
  • Web --- [v] Web --- [Finish]

4 프로젝트 실행

  • Package Explorer --- HelloStarter 우클릭 --- Run As --- Spring Boot App
  • 하단 Console 창 확인
  .   ____          _            __ _ _
 /\\ / ___'_ __ _ _(_)_ __  __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
 \\/  ___)| |_)| | | | | || (_| |  ) ) ) )
  '  |____| .__|_| |_|_| |_\__, | / / / /
 =========|_|==============|___/=/_/_/_/
 :: Spring Boot ::        (v1.3.3.RELEASE)

2016-03-07 08:43:44.568  INFO 3284 --- [           main] c.example.hello.HelloStarterApplication  : Starting HelloStarterApplication on WIN-DBOPKTBU0KB with PID 3284 (C:\workspace\sts\HelloStarter\target\classes started by jmkim in C:\workspace\sts\HelloStarter)
2016-03-07 08:43:44.583  INFO 3284 --- [           main] c.example.hello.HelloStarterApplication  : No active profile set, falling back to default profiles: default
2016-03-07 08:43:44.646  INFO 3284 --- [           main] ationConfigEmbeddedWebApplicationContext : Refreshing org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@4ba2ca36: startup date [Mon Mar 07 08:43:44 KST 2016]; root of context hierarchy
2016-03-07 08:43:45.270  INFO 3284 --- [           main] o.s.b.f.s.DefaultListableBeanFactory     : Overriding bean definition for bean 'beanNameViewResolver' with a different definition: replacing [Root bean: class [null]; scope=; abstract=false; lazyInit=false; autowireMode=3; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=org.springframework.boot.autoconfigure.web.ErrorMvcAutoConfiguration$WhitelabelErrorViewConfiguration; factoryMethodName=beanNameViewResolver; initMethodName=null; destroyMethodName=(inferred); defined in class path resource [org/springframework/boot/autoconfigure/web/ErrorMvcAutoConfiguration$WhitelabelErrorViewConfiguration.class]] with [Root bean: class [null]; scope=; abstract=false; lazyInit=false; autowireMode=3; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=org.springframework.boot.autoconfigure.web.WebMvcAutoConfiguration$WebMvcAutoConfigurationAdapter; factoryMethodName=beanNameViewResolver; initMethodName=null; destroyMethodName=(inferred); defined in class path resource [org/springframework/boot/autoconfigure/web/WebMvcAutoConfiguration$WebMvcAutoConfigurationAdapter.class]]
2016-03-07 08:43:46.019  INFO 3284 --- [           main] s.b.c.e.t.TomcatEmbeddedServletContainer : Tomcat initialized with port(s): 8080 (http)
2016-03-07 08:43:46.036  INFO 3284 --- [           main] o.apache.catalina.core.StandardService   : Starting service Tomcat
2016-03-07 08:43:46.036  INFO 3284 --- [           main] org.apache.catalina.core.StandardEngine  : Starting Servlet Engine: Apache Tomcat/8.0.32
2016-03-07 08:43:46.145  INFO 3284 --- [ost-startStop-1] o.a.c.c.C.[Tomcat].[localhost].[/]       : Initializing Spring embedded WebApplicationContext
2016-03-07 08:43:46.145  INFO 3284 --- [ost-startStop-1] o.s.web.context.ContextLoader            : Root WebApplicationContext: initialization completed in 1515 ms
2016-03-07 08:43:46.441  INFO 3284 --- [ost-startStop-1] o.s.b.c.e.ServletRegistrationBean        : Mapping servlet: 'dispatcherServlet' to [/]
2016-03-07 08:43:46.446  INFO 3284 --- [ost-startStop-1] o.s.b.c.embedded.FilterRegistrationBean  : Mapping filter: 'characterEncodingFilter' to: [/*]
... (생략)

5 같이 보기

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}