메뉴 건너뛰기

조회 수 1346 추천 수 0 댓글 0
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄

Spring으로 개발을 한 후 Tomcat Server에서 구동을 하려면 다음과 같은 절차로 진행하시면 됩니다.

1. WebContent 배포
2. Library 배포
3. Class 배포
4. Tomcat 설정

1. WebContent 배포
- Tomcat의 webapps 밑에 project 폴더(예:myprj)를 생성하여 해당 파일들을 배포합니다.
예) tomcat–webapps–myprj–
|-index.jsp
|-css
|-images
|-js
|-WEB-INF

2. Library 배포
WEB-INF/lib 폴더에 *.jar 파일을 배포합니다.
* mysql 사용하실 경우에는 connector도 이곳에 배포합니다.(mysql-connector-java-5.1.15-bin.jar)

3. Class 배포
class 파일들은 WEB-INF/classes에 배포합니다.

4. Tomcat 설정
tomcat root/conf/server.xml에 아래 내용을 수정합니다.

1
<Host appBase="webapps" autoDeploy="true" deployOnStartup="true" deployXML="true" name="localhost" unpackWARs="true" xmlNamespaceAware="false" xmlValidation="false"><Context docBase="프로젝트명(myprj)" path="" reloadable="true" source="org.eclipse.jst.jee.server:프로젝트명(myprj)"/></Host>

*한글 설정
WEB-INF/web.xml에 아래 내용을 추가해 주시면 한글을 정상적으로 사용가능합니다.

1
2
3
4
5
6
7
8
<filter>
<filter-name>encoding</filter-name>
<filter-class>org.springframework.web.filter.CharacterEncodingFilter</filter-class>
<init-param>
<param-name>encoding</param-name>
<param-value>EUC-KR</param-value>
</init-param>
</filter>

설정이 완료되면 tomcat을 리부팅 해주시면 됩니다.


List of Articles
번호 제목 날짜 조회 수
43 HTMLTagFilter ? 2016.09.21 7752
42 로그인 체크 인터셉터 사용 (AuthenticInterceptor) 2016.09.21 6676
41 message 사용을 위한 설정 2016.09.21 6561
40 getFileMap() 메소드를 이용한 파일 업로드 기능 구현하기 2016.09.21 6190
39 getFileNames() 메소드를 이용한 파일 업로드 기능 구현하기 2016.09.21 5802
38 공통코드관리 2016.09.21 5762
37 스프링 CKEditor 적용 - 에디터 2018.06.12 5576
36 전자정부 프레임워크(egov framework) 설치하기(1) file 2017.09.12 5296
35 Aspect 어노테이션 사용을 위한 설정. file 2016.08.18 5022
34 개발자로서 기본 구성합니다. file 2016.08.18 4939
33 spring ckeditor 파일업로드 예제 (file upload) file 2018.06.12 4516
32 <c:url> 태그 사용법 file 2019.02.28 4333
31 Spring Security의 동작 방법 file 2018.06.21 4270
30 "알 수 없는 오류가 발생하였습니다." 라는 에러 메시지가 발생했을 때 대처법 2018.06.12 4171
29 전자정부 프레임워크(eGovframe) 동적 웹프로젝트 시작하기(2) file 2017.09.12 4165
28 java.lang.NoClassDefFoundError: org/springframework/dao/support/PersistenceExceptionTranslator 2016.09.21 4162
27 전자정부프레임워크 구조 파악하기 file 2018.06.02 4126
26 스프링프레임워크 <form:form> 태그 사용법 file 2019.02.28 3514
25 CKEditor 사용 및 파일 업로드 적용 2018.06.12 3165
24 전자정부프레임워크 사용 중 중복 저장 방지 (새로고침 혹은 뒤로가기시) 2018.06.12 3053
Board Pagination Prev 1 2 3 Next
/ 3

하단 정보를 입력할 수 있습니다

© k2s0o1d4e0s2i1g5n. All Rights Reserved