Replies: 2 comments
-
| 수고하셨습니당  | 
Beta Was this translation helpful? Give feedback.
                  
                    0 replies
                  
                
            -
| 수고하셨습니다 ~ | 
Beta Was this translation helpful? Give feedback.
                  
                    0 replies
                  
                
            
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
섹션 1. 프로젝트 환경 설정
1. 프로젝트 생성
https://start.spring.io/
스프링 부트 스타터를 사용하여 스프링 프로젝트 생성
환경 설정 후 main > java > application 파일에 있는 main 함수를 실행하여 Tomcat 웹 서버 띄우기
2. 라이브러리 살펴보기
build.gradle 을 보면 이 강의에서 사용하기 위해 다운로드 한 라이브러리들을 볼 수 있다.
그리고 External Libraries 를 보면 관련된 수많은 라이브러리들을 당겨온 것을 확인할 수 있다.
스프링 부트 라이브러리
spring-boot-starter-web
spring-boot-starter-tomcat: 톰캣 (웹서버)
spring-webmvc: 스프링 웹 MVC
spring-boot-starter-thymeleaf: 타임리프 템플릿 엔진(View)
spring-boot-starter(공통): 스프링 부트 + 스프링 코어 + 로깅
spring-boot
spring-core
spring-boot-starter-logging
logback, slf4j
테스트 라이브러리
spring-boot-starter-test
junit: 테스트 프레임워크
mockito: 목 라이브러리
assertj: 테스트 코드를 좀 더 편하게 작성하게 도와주는 라이브러리
spring-test: 스프링 통합 테스트 지원
3. View 환경설정
spring.io 를 통해 스프링 및 스프링 부트에서 필요한 정보를 찾아쓸 수 있다.
스프링 부트의 Welcome Page 기능
static/index.html 을 Welcome Page 로 제공
thymeleaf 템플릿 엔진
Controller 를 사용하여 페이지를 매핑한다.
Beta Was this translation helpful? Give feedback.
All reactions