티스토리 뷰

* 환경

- Eclipse Java EE IDE for Web Developers - Oxygen

- Ubuntu 14.04

- Tomcat 8.5

- MySQL 8.0






1. Spring Tools  설치

https://zetawiki.com/wiki/%EC%9C%88%EB%8F%84%EC%9A%B0_%EC%8A%A4%ED%94%84%EB%A7%81%EA%B0%9C%EB%B0%9C%ED%99%98%EA%B2%BD_STS_%EC%84%A4%EC%B9%98


이클립스 > Help > Eclipse Marketplace 

find 에서 sts 검색

Spring Tools 설치


소요시간 : 10분 내



2. Spring Project 시작

2-1. 상단메뉴 > File > New > Other > Spring > Spring Legacy Project 

2-2. Spring>Spring Legacy Project 선택 후 다음

2-3. PRJ 이름 설정

2-4. (Templates) Spring MVC Project 선택 후 다음

2-5. 패키지 명 설정  후 완료




3. 프로젝트 톰캣 서버에 등록

3-1. File > New > Server

3-2 톰캣 버전 선택, 톰캣 설치위치 설정

3-3. 위에서 생성한 프로젝트를 방금 생성한 서버에 추가

3-4. Window > Show View > Other > Server 로 서버 컨트롤 창 열기

3-5. 서버 우클릭 > Start

주의 : 이미 톰캣 돌고 있다면, 이클립스 톰캣 서버에서는 포트 충돌로 오류 발생할 수 있음.

3-6. 브라우져에서 정상 작동 하는지 확인

일반적으로 localhost:8080/패키지 이름 마지막 단어

abc.def.ghi 이면

localhost:8080/ghi



- 오류

브라우져 에서 연결시 HTTP Status 404 – Not Found

Type Status Report


Message /XXXXX


Description The origin server did not find a current representation for the target resource or is not willing to disclose that one exists.


주소가 틀렸을 가능성


Project clean 하면 서버가 자동으로 Publish 되는데 메시지에서 컨텍스트 명 확인 가능


정보: Reloading Context with name [/컨텍스트명] is completed



- 여기까지 하면 Spring MVC 환경이 완료됨



4. Hibernate  연결

http://dogcowking.tistory.com/153



5. 프로젝트 GIT 연결



6. Spring JUnit 테스트 환경


http://dogcowking.tistory.com/45



공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
TAG
more
«   2024/05   »
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31
글 보관함