Java/Spring

[스프링] 개발 환경 구축 :: Java, STS, 플러그인 설치 / 인코딩 설정 / WAS(Tomcat) 등록

ImYena 2021. 9. 2. 12:16
728x90

JDK 설치

1. Java 1.8 버전 다운로드 및 설치

링크 :  https://www.oracle.com/kr/java/technologies/javase/javase-jdk8-downloads.html

추가 설명

▪ java.exe : JVM을 구동시키기 위한 명령 프로그램 = JRE

↳ .class 파일을 해석하는 도구가 JRE

▪ javac.exe : *.java 파일을 컴파일 하기 위한 자바 컴파일러

 

참고) java.exe와 javac.exe의 상관관계

2. 환경변수 설정

JAVA_HOME 변수 추가

Path 변수에 %JAVA_HTML%\bin 추가

CLASSPATH 변수 추가

 

SpringToolSuiet 설치

1. Spring Tools 4 for Eclipse 다운로드 및 설치

 

Spring Tools 4 is the next generation of Spring tooling

Largely rebuilt from scratch, Spring Tools 4 provides world-class support for developing Spring-based enterprise applications, whether you prefer Eclipse, Visual Studio Code, or Theia IDE.

spring.io

2. 플러그인 설치

Eclipse Enterprise Java and Web Developer Tools

1. Help > Eclipse Marketplace...
2. Find > "Eclipse Enterprise Java" 검색
3. "Eclipse Enterprise Java and Web Developer Tools" 설치
Spring Tools 3 Add-on

1. Help > Eclipse Marketplace...
2. Find > "Spring Tools" 검색
3. "Spring Tools 3 Add-on" 설치

3. 인코딩 설정

1. Window > Preferences
2. "encoding" 검색
3. General > Workspace > Text file encoding 을 "UTF-8"로 설정 후 Apply
4. Web > CSS Files > Creating files > Encoding 을 "ISO 10646/Unicode(UTF-8)"로 설정 후 Apply 
5. Web > HTML Files > Creating files > Encoding 을 "ISO 10646/Unicode(UTF-8)"로 설정 후 Apply
6. Web > JSP Files > Creating files > Encoding 을 "ISO 10646/Unicode(UTF-8)"로 설정 후 Apply
7. XML > XML Files > Creating files > Encoding 을 "ISO 10646/Unicode(UTF-8)"로 설정 후 Apply

 

WAS(Tomcat) 등록

 

Apache Tomcat® - Apache Tomcat 9 Software Downloads

Welcome to the Apache Tomcat® 9.x software download page. This page provides download links for obtaining the latest version of Tomcat 9.0.x software, as well as links to the archives of older releases. Unsure which version you need? Specification version

tomcat.apache.org

Binary Distributions > Core:  > zip (pgp, sha512) 다운로드

 

1. Window > Preferences
2. Server > Runtime Environments > Add...
3. Apache Tomcat v9.0 선택 후 Next > Tomcat installation directory: 를 위에서 설치한 파일 경로로 설정

 

728x90
반응형