Spring Project 작성단계 (스프링 프로젝트 생성하기)

CODEDRAGON Development/Spring

반응형


Spring Project 생성 단계, 도식도

http://codedragon.tistory.com/5033

 

 

Spring Project 작성단계 (스프링 프로젝트 생성하기)

·         Step1:Spring Project 생성

·         Step2:Spring Module 설치

 

 

Step1:Spring Project 생성 단계

·         Java Project 생성

·         Convert to Maven Project

·         Add Spring Project Nature

 

 

Java Project 생성

메뉴: [File] >> [Java Project]


 

[Finish]


 

[Yes]



 


 

 

Convert to Maven Project

PackageExplorer에서 생성한 프로젝트명 선택 >> 마우스 우클릭 >> [Configure] >> [Convert to Maven Project]


 

[Finish]



 


 

 

Add Spring Project Nature

PackageExplorer에서 생성한 프로젝트명 선택 >> 마우스 우클릭 >> [Spring Tools] >> [Add Spring Project Nature]


 

프로젝트의 특징이 Spring 프로젝트로 변경되었기때문에 프로젝트명 앞의 아이콘이 S가 붙은 아이콘으로 변경이 되었습니다.


 

 

 

Step2:Spring Module 설치

 

https://mvnrepository.com/

 

"spring context module" 로 검색

spring context module



 


 

버전 번호 클릭


 

Maven 항목에 있는 dependency정보 복사


 

 

pom.xml에 복사한 태그를 직접 붙여넣기합니다.

<dependency>

    <groupId>org.springframework</groupId>

    <artifactId>spring-context</artifactId>

    <version>4.3.6.RELEASE</version>

</dependency>

 

[Dependencies]탭에 보면 추가한 모듈 목록이 보입니다.


 

반응형