-
2.서버 톰캣 설정.스프링 웹 개발 하기/스프링 개발 초기 설정. 2020. 1. 1. 19:53
1. 톰캣 다운로드
1) 원하는 버전을 클릭
2) 해당 파일중 zip파일 window버전에 맞는 걸로 다운 받는다.
3)server name 은 프로젝트에 맞게 변경 할 수 있다.
Finish 클릭
4) 서버를 더블 클릭한다.
Overview
기본 포트는 8080으로 사용되고 있다.
상황에 따라서 다른 포트를 사용해도 된다.
ex) 8081,8082
Modules
마지막 패키지명이 따라온다.
5) 서버 시작.
마우스 우클릭 하고 start 하면 된다. 반대로 서버를 끌때는 stop 하면된다.
서버를 start 하고
브라우저 위에 http://localhost:8080/web 를 클릭 해준다.
80포트는 인터넷 포트라서 80포트로 설정하게되면 url에 80을 안적어 줘도 된다.
edit를 이용해서 path를 지워 주고 사용을 해도 된다.
브라우저 위에 http://localhost 를 클릭 해준다.
'스프링 웹 개발 하기 > 스프링 개발 초기 설정.' 카테고리의 다른 글
6. 마이바티스 연결. (0) 2020.01.05 5.DB커넥션 풀 (0) 2020.01.05 4.DB설정. -- postgresql,mysql,oracle (0) 2020.01.05 3.스프링 기본 설정. (0) 2020.01.01 1.웹 개발 준비 및 git 연동. (0) 2019.12.29