이클립스의 jsp/servlet 개발환경
위 화면이 익숙한 분들을 위한 vscode 개발환경 setting 하기(vscode 가 아직은 불편함)
사전단계
개발환경 구축
[단계 1] maven 설치
https://maven.apache.org/download.cgi
다운로드 후 압축 해제(위치 상관 없음)
[단계 2] 시스템 환경 변수 편집
[단계 3] 톰캣 서버 설치
C:\Users\본인컴퓨터명\.rsp\redhat-community-server-connector\runtimes\installations\tomcat-9.0.41\apache-tomcat-9.0.41\conf\logging.properties
5. 서버 배포를 위한 매니저 설정
C:\Users\본인컴퓨터명\.rsp\redhat-community-server-connector\runtimes\installations\tomcat-9.0.41\apache-tomcat-9.0.41\conf\tomcat-users.xml
[단계 4] vscode 확장 프로그램 설치 및 emmet 설정
{
"Jsp Template": {
"prefix": "jsp",
"body": [
"<%@ page language=\"java\" contentType=\"text/html; charset=UTF-8\" pageEncoding=\"UTF-8\"%>",
"<%@ taglib prefix=\"c\" uri=\"http://java.sun.com/jsp/jstl/core\"%>"
],
"description": "Jsp Template"
}
}
[단계 5] 프로젝트 생성 후 jsp,servlet 작성
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>jstl</artifactId>
<version>1.2</version>
</dependency>
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>1.18.2</version>
<scope>provided</scope>
</dependency>
[단계 6] 실행
war 작성
war 실행