이 블로그의 글은 JAVA DB 엔지니어링 과정 수업을 위해 작성된 글입니다.
이미지로 인해 글이 길어질 수 있습니다.
github에 저장소 생성하기
내 PC에 저장소 클론하기
스프링 프로젝트 생성하기
프로젝트 실행하기
이 블로그의 글은 JAVA DB 엔지니어링 과정 수업을 위해 작성된 글입니다.
이미지로 인해 글이 길어질 수 있습니다.
github에 저장소 생성하기
내 PC에 저장소 클론하기
스프링 프로젝트 생성하기
프로젝트 실행하기
github에 저장소 생성하기
github](https://github.com) 에 로그인
Start a project 클릭

저장소 이름 입력

링크 복사

github](https://github.com) 에 로그인
Start a project 클릭
저장소 이름 입력
링크 복사
내 PC에 저장소 클론하기
GitKraken 실행
메뉴 File > Clone Repo 클릭

Clone > GitHub.com > 저장소 선택 후 Browse 클릭

PC에 연결한 폴더를 선택 후 폴더선택 클릭

Clone the repo! 클릭

Open Now 클릭 > Initialize 클릭


Push 클릭 > Submit 클릭


GitKraken 실행
메뉴 File > Clone Repo 클릭
Clone > GitHub.com > 저장소 선택 후 Browse 클릭
PC에 연결한 폴더를 선택 후 폴더선택 클릭
Clone the repo! 클릭
Open Now 클릭 > Initialize 클릭
Push 클릭 > Submit 클릭
스프링 프로젝트 생성하기
STS 실행
File > New > Spring Legacy Project 클릭

Use default location 클릭 해제 후 Browse... 클릭

클론을 통해 생성된 폴더 선택

프로젝트명 기입 후 Spring MVC Project 선택 후 Next 클릭, Yes 클릭(STS 실행 후 처음만 뜸)


프로젝트 패키지명 기입 후 Finish 클릭: kr.green.spring

STS 실행
File > New > Spring Legacy Project 클릭
Use default location 클릭 해제 후 Browse... 클릭
클론을 통해 생성된 폴더 선택
프로젝트명 기입 후 Spring MVC Project 선택 후 Next 클릭, Yes 클릭(STS 실행 후 처음만 뜸)
프로젝트 패키지명 기입 후 Finish 클릭: kr.green.spring
프로젝트 실행하기
프로젝트 우클릭 > Run As > Run on Server 선택

Finish 클릭

액세스 허용 클릭(방화벽 설정에 따라 안 뜰수도 있으며, 한번 설정하면 이후에 뜨지 않음)

실행 결과

프로젝트 우클릭 > Run As > Run on Server 선택
Finish 클릭
액세스 허용 클릭(방화벽 설정에 따라 안 뜰수도 있으며, 한번 설정하면 이후에 뜨지 않음)
실행 결과
GitKraken 실행
.gitignore파일 생성
아무파일이나 우클릭 > ignore > 'ignore 파일명 클릭'
ignore 클릭
.gitignore파일 클릭 > Edit this file 클릭 후 다음 코드 추가
# Created by https://www.gitignore.io/api/java,java-web
# Edit at https://www.gitignore.io/?templates=java,java-web
### Java ###
# Compiled class file
*.class
# Log file
*.log
# BlueJ files
*.ctxt
# Mobile Tools for Java (J2ME)
.mtj.tmp/
# Package Files #
*.jar
*.war
*.nar
*.ear
*.zip
*.tar.gz
*.rar
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
hs_err_pid*
### Java-Web ###
## ignoring target file
target/
# End of https://www.gitignore.io/api/java,java-webStage File 클릭 > Save and stage 클릭
커밋 내용 작성 후 커밋 클릭
Stage all changes 클릭하여 커밋내용 작성 후 커밋
Push클릭하여 온라인 저장소에 저장
수고하셨습니다.!!!