준비물
JDK
Maven
Eclipse
JDK 설치 JAVA_HOME 환경변수 설정
JDK 다운로드 - http://www.oracle.com/technetwork/pt/java/javase/downloads/jdk8-downloads-2133151.html
시스템 속성 [고급] 탭에 환경 변수
변수 이름 : JAVA_HOME
변수 값 : jdk 경로 입력
환경변수 설정이 제대로 되었는지 확인
cmd창에서 java -version, java 명령어 입력확인
C:\ Command Prompt |
Microsoft Windows [Version 6.1.7601] Copyright (c) 2009 Microsoft Corporation. All rights reserved. C:\Users\KH>java -version java version "1.8.0_151" Java(TM) SE Runtime Environment (build 1.8.0_151-b12) Java HotSpot(TM) 64-Bit Server VM (build 25.151-b12, mixed mode) C:\Users\KH>javac Usage: javac <options> <source files> where possible options include: -g Generate all debugging info -g:none Generate no debugging info -g:{lines,vars,source} Generate only some debugging info -nowarn Generate no warnings -verbose Output messages about what the compiler is doing -deprecation Output source locations where deprecated APIs ar sed -classpath <path> Specify where to find user class files and annot on processors -cp <path> Specify where to find user class files and annot on processors -sourcepath <path> Specify where to find input source files -bootclasspath <path> Override location of bootstrap class files -extdirs <dirs> Override location of installed extensions -endorseddirs <dirs> Override location of endorsed standards path -proc:{none,only} Control whether annotation processing and/or com ation is done. -processor <class1>[,<class2>,<class3>...] Names of the annotation processo to run; bypasses default discovery process -processorpath <path> Specify where to find annotation processors -parameters Generate metadata for reflection on method param rs -d <directory> Specify where to place generated class files -s <directory> Specify where to place generated source files -h <directory> Specify where to place generated native header f s -implicit:{none,class} Specify whether or not to generate class files f implicitly referenced files -encoding <encoding> Specify character encoding used by source files -source <release> Provide source compatibility with specified rele -target <release> Generate class files for specific VM version -profile <profile> Check that API used is available in the specifie rofile -version Version information -help Print a synopsis of standard options -Akey[=value] Options to pass to annotation processors -X Print a synopsis of nonstandard options -J<flag> Pass <flag> directly to the runtime system -Werror Terminate compilation if warnings occur @<filename> Read options and filenames from file C:\Users\KH> |
메이븐(Maven) 설치 및 환경변수 설정
Maven 다운로드 - https://maven.apache.org/download.cgi
tar : UNIX 버전
zip : Window 버전
Binary : 바이너리 아카이브
Source : 소스코드
압축 풀고 환경변수 설정
경로 확인하고 환경변수 설정
PATH 환경변수에 %M2_HOME%\bin; 추가
환경변수 설정이 제대로 되었는지 확인
cmd창에 mvn -version 명령어 입력확인
C:\ Command Prompt |
Microsoft Windows [Version 6.1.7601] Copyright (c) 2009 Microsoft Corporation. All rights reserved. C:\Users\KH>mvn -version Apache Maven 3.5.2 (138edd61fd100ec658bfa2d307c43b76940a5d7d; 2017-10-18T16:58:1 3+09:00) Maven home: C:\devtool\apache-maven-3.5.2-bin\apache-maven-3.5.2\bin\.. Java version: 1.8.0_151, vendor: Oracle Corporation Java home: C:\Program Files\Java\jdk1.8.0_151\jre Default locale: ko_KR, platform encoding: MS949 OS name: "windows 7", version: "6.1", arch: "amd64", family: "windows" C:\Users\KH> |
Eclipse 설치 (2가지 방법)
- STS 버전
Spring Tool Suits 버전
다운로드 - http://spring.io/tools/sts/all
- 일반 이클립스 버전
+ Spring 관련 파일 다운로드 받기
다운로드 - Eclipse IDE Tool 실행 후
[Help] -> [Eclipse Marketplace] 검색 : Spring Tools 3.9.2 Release Install (STS)
'Certification > Spring(2V0-72.22, SCP)' 카테고리의 다른 글
Spring MVC Controller (0) | 2018.08.06 |
---|---|
Spring WEB - DB 연결과 Test (0) | 2018.08.05 |
Spring WEB MVC 프로세스 - Home.jsp 동작순서 (0) | 2018.08.05 |
Spring MVC 웹프로젝트 기본 설정 (0) | 2018.08.05 |
Spring MVC 환경 설정 (0) | 2018.08.04 |