일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | ||||
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 | 31 |
- inheritance
- 자바 개발환경준비
- Runnable
- JDK 설치
- 접근제한수식어
- SPRING 특징
- Statement
- tomat
- DB 설정
- Spring 구조
- 싱글톤 패턴
- append()
- File
- 톰켓
- innerclass
- java
- Overloading
- Visuall code
- spring 페이징
- OuterClass
- 오버로딩
- New Frame
- pox.xml 오류
- Unbox
- Spring 개념
- singleton
- New Dialog
- 드림코딩
- protected
- 오라클 데이터베이스
- Today
- Total
~홍~
Spring 설치 ( Eclipse ) 본문
01.
Eclipse help >> Eclipse Marketplace >> "sts" 검색 >>
* Spring Tools 설치 ( 수업 버전 4 )
* Spring Tools 3 Add-On for Spring tools 설치 ( 수업 )
02.
Open Perspective >> Spring (이클립스작업 환경을 Spring으로 변경하는 작업 )
03.
maven 다운로드
사이트 주소 : maven.apache.org/download.cgi ( 수업 : apache-maven-3.6.3-bin.zip 다운)
04.
C 드라이버에 Study 폴더 생성 후 다운로드한 maven 파일을 붙여 넣기.
05.
본인 경로 저장: Oracle xe 11g 경로 확인(오라클 설치된 경로) - C:\oraclexe\app\oracle\product\11.2.0\server\jdbc\lib
mvn install:install-file -Dfile=본인 경로 저장\odbc6.jar -DgroupId=com.oracle -DartifactId=ojdbc6 -Dversion=11.2.0 -Dpackaging=jar
본인 경로 저장된 모든 내용을 cmd 관리자 권한으로 실행 후 위 내용을 붙여 넣기한다. BUILD SUCCESS 문구 확인되면 완료.
06. Spring MVC Project 생성 : File -> New -> Spring Legacy Project -> Spring MVC Project
07. Project -> Properties -> Project Facets
- Java 버전 1.8(현 버전으로) 변경
- Dynamic Web Module 3.1(현 버전으로)로 변경
-> Apply
08. 기존 서버가 존재하면 Spring 프로젝트와 연결
Project -> Properties -> Server -> 서버 선택
Project -> Properties -> Targeted Runtimes -> Apache Tomcat v8.5(현 버전 선택) 선택
09. 프로젝트 구조
- src/main/java : java 코드 경로
- src/main/resources : 서버가 실행될 때 파일들(리소드들) : xml 등
- src/test/java : 테스트 Java 코드 경로
- src/test/resources : 테스트할 때만 사용되는 자바 이외의 파일들(리소드)
- servlet-context : servlet 컨텍스트 (서블릿이 사용하는 bean)설정 파일
- root-context : Spring AC(애플리케이션 컨텍스트) 설정 파일 (bean)
- veiw : view 파일들(jsp, html 등) 경로
- web.xml : 배포 관리자(deployment descriptor), Context, Servlet, Filter 설정 등
- pom.xml : Spring Library 설정 등
=> 수업 때 Eclipse 버전 설치가 안되어 Eclipse 업데이트 하였음 ~ 버전 업데이트 하는 방법
사이트 접속 : download.eclipse.org/releases/2020-09/
Eclipse software repository | The Eclipse Foundation
The Eclipse Foundation - home to a global community, the Eclipse IDE, Jakarta EE and over 360 open source projects, including runtimes, tools and frameworks.
download.eclipse.org
=> 해당 경로를 Window >> preference >> install/ update >> add >> 위 링크를 추가
=> help >> check for update 클릭 후 설치
'Other' 카테고리의 다른 글
오라클 데이터베이스 설치 (0) | 2021.04.04 |
---|---|
자바 개발 환경 준비 (0) | 2021.04.04 |
Tomcat 설치 (0) | 2021.04.03 |
웹 프로그래밍 (0) | 2021.04.03 |
Github로 포트폴리오 만들기 (0) | 2021.03.23 |