Tomcat 설정하기

hyunn·2021년 8월 5일
0

Java-basic

목록 보기
21/26
post-thumbnail

Tomcat 톰캣

Tomcat 에서 Tomcat 9.0 - Core zip 다운 -> C:\ 에 압축해제


Eclipse 에서 Tomcat setting

  1. eclipse 실행 - preference
  1. Server - Runtime Environment > tomcat - bin이 들어있는 폴더 Add

image

  1. New - Web - Dynamic Web Project

image

  1. 프로젝트폴더 > src > main > webapp 아래에 파일 생성

    test.html
  1. test.html 작성

image

  1. test.html 말고 전체 프로젝트 폴더에서 Run As > 결과창

image



IntelliJ 에서 Tomcat setting

  1. New > Project > Gradle > Java, Web 둘 다 체크

image

  1. 생성된 프로젝트에서 Run Configurations > + > Tomcat server > localhost 선택

    이름 TOMCAT으로 설정

  1. Server > Application server > Configue... > tomcat -bin이 들어있는 폴더 Add

image

  1. Deployment > + > 위에꺼 선택 > OK

image

  1. 나와서 우측 상단에 TOMCAT 추가된것 확인

image

0개의 댓글