본문 바로가기

Spring

spring 설치, spring 프로젝트 생성 [이클립스]

[Spring 설치]

1. www.springsource.org 에서 

    spring 3.07버젼을 다운받음

 

 

2. eclipse에서 sts 다운로드 (help - eclipse marketplace )

 

 

3. commons.apache.org 에서 

    logging -  download - commons-logging-1.1.2-bin.tar.gz 다운로드

 

 

 

4. eclipse에서 maven 다운로드 (help - eclipse marketplace )

 

 

 

 

 

 

[Spring 프로젝트 만들기]

 

1. [New] - [Other] - [Spring] - [Spring Project]





2. 이름을 지정



3. 프로젝트에 Spring관련 jar 파일을 넣어줌.

- [Properties] - [Libraries] - [Add External JARs..]

(1) spring 3.07버젼을 다운받은 파일 중 [dist] 디렉토리에 들어있는 jar 파일들

 
 

(2) commons.apache.org에서 다운받은 commons-logging-1.1.2 파일중에 

   commons-logging- 1.1.2.jar 파일


- 위의 두개를 Add External JARs... 로 추가해준다.
 

 

 

 

 

4. Spring Bean Configuration File  파일을 만들어준다.

- [new] - [other] - [Spring] - [Spring Bean Configuration File]

 
- 이름 지정

 

-  bean 체크

- 자신의 버젼에 맞는 것 선택
 

 

 


출처 : http://blog.naver.com/kyh0687/150166582352