본문 바로가기
Programming/Spring Boot

Spring Boot 웹 프로젝트 생성

by 주리니e 2022. 7. 8.
728x90

Spring Boot 웹 프로젝트 생성

 

File - New - Others
 
spring starter project - Next
 

 

New Spring Starter Project
 
본인의 개발 방식에 맞게 설정한다.

 

New Spring Starter Project Dependencies

사용할 Dependencies를 추가할 수 있다. 프로젝트 생성 후 나중에 추가가 가능하므로 깊게 고민할 필요는 없다.

 

 
생성된 프로젝트 우클릭 - Rus As - Spring Boot App

 

  .   ____          _            __ _ _
 /\\ / ___'_ __ _ _(_)_ __  __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
 \\/  ___)| |_)| | | | | || (_| |  ) ) ) )
  '  |____| .__|_| |_|_| |_\__, | / / / /
 =========|_|==============|___/=/_/_/_/
 :: Spring Boot ::                (v2.7.1)

2022-07-08 17:27:47.635  INFO 11604 --- [           main] com.example.test.TestApplication         : Starting TestApplication using Java 17.0.3 on PC with PID 11604 (D:\development\workpsace-tistory\test\bin\main started by user in D:\development\workpsace-tistory\test)
2022-07-08 17:27:47.637  INFO 11604 --- [           main] com.example.test.TestApplication         : No active profile set, falling back to 1 default profile: "default"
2022-07-08 17:27:48.122  INFO 11604 --- [           main] o.s.b.w.embedded.tomcat.TomcatWebServer  : Tomcat initialized with port(s): 8080 (http)
2022-07-08 17:27:48.123  INFO 11604 --- [           main] o.a.catalina.core.AprLifecycleListener   : An older version [1.2.23] of the Apache Tomcat Native library is installed, while Tomcat recommends a minimum version of [1.2.30]
2022-07-08 17:27:48.123  INFO 11604 --- [           main] o.a.catalina.core.AprLifecycleListener   : Loaded Apache Tomcat Native library [1.2.23] using APR version [1.7.0].
2022-07-08 17:27:48.123  INFO 11604 --- [           main] o.a.catalina.core.AprLifecycleListener   : APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true], UDS [false].
2022-07-08 17:27:48.123  INFO 11604 --- [           main] o.a.catalina.core.AprLifecycleListener   : APR/OpenSSL configuration: useAprConnector [false], useOpenSSL [true]
2022-07-08 17:27:48.125  INFO 11604 --- [           main] o.a.catalina.core.AprLifecycleListener   : OpenSSL successfully initialized [OpenSSL 1.1.1c  28 May 2019]
2022-07-08 17:27:48.131  INFO 11604 --- [           main] o.apache.catalina.core.StandardService   : Starting service [Tomcat]
2022-07-08 17:27:48.131  INFO 11604 --- [           main] org.apache.catalina.core.StandardEngine  : Starting Servlet engine: [Apache Tomcat/9.0.64]
2022-07-08 17:27:48.190  INFO 11604 --- [           main] o.a.c.c.C.[Tomcat].[localhost].[/]       : Initializing Spring embedded WebApplicationContext
2022-07-08 17:27:48.190  INFO 11604 --- [           main] w.s.c.ServletWebServerApplicationContext : Root WebApplicationContext: initialization completed in 526 ms
2022-07-08 17:27:48.398  INFO 11604 --- [           main] o.s.b.w.embedded.tomcat.TomcatWebServer  : Tomcat started on port(s): 8080 (http) with context path ''
2022-07-08 17:27:48.404  INFO 11604 --- [           main] com.example.test.TestApplication         : Started TestApplication in 0.987 seconds (JVM running for 1.424)
2022-07-08 17:32:34.282  INFO 11604 --- [nio-8080-exec-1] o.a.c.c.C.[Tomcat].[localhost].[/]       : Initializing Spring DispatcherServlet 'dispatcherServlet'
2022-07-08 17:32:34.283  INFO 11604 --- [nio-8080-exec-1] o.s.web.servlet.DispatcherServlet        : Initializing Servlet 'dispatcherServlet'
2022-07-08 17:32:34.283  INFO 11604 --- [nio-8080-exec-1] o.s.web.servlet.DispatcherServlet        : Completed initialization in 0 ms

 

localhost:8080

브라우저에서 아래와 같이 입력 후 검색해본다.

 

 
Whitelabel Error Page

 

정상적으로 웹 서버가 기동이 되었다.

728x90

댓글