
에러내용 Several ports (8005, 8080, 8009) required by Tomcat v8.5 Server at localhost are already in use. The server may already be running in another process, or a system process may be using the port. To start this server you will need to stop the other process or change the port number(s). * window키+r 을 누른 후 cmd 창을 입력한다. * 포트8080과 그에 따른 pid를 찾았다면 원하는 포트 찾는 방법 명령어: netstat -ano |findstr 8080 - tas..

보통 JAR 파일을 프로젝트에 넣을때, 이렇게 사용합니다. * 첫번째 방법 : - 프로젝트 안에 lib 라는 새 폴더 만들기 (이름은 아무거나) - 그 안에 jar 파일 넣기 - 이클립스에서 refresh 하면 폴더가 보여짐 - jar 파일을 모두 선택한후에 , 오른쪽 클릭 - Build Path - Add to Build Path 클릭하면 끝 - 이클립스에서 Referenced Libraries 에 보여질것임. * 두번째 방법: - 프로젝트 안에 lib 라는 새 폴더 만들기 (이름은 아무거나) - 그 안에 jar 파일 넣기 - 이클립스에서 refresh 하면 폴더가 보여짐 - Project -> Select Build Path -> Select Configure Build Path -> Library ..

*초기 properties 파일에서 한글이 깨지는 것을 확인할 수 있는데 이를 해결하기 위한 방법을 알아보자. *이클립스(Eclipse) - 상단 Window - Preferences - Content Types - Text - Java Properties File - UTF-8로 업데이트 * 설정 후 다시 복사 하니 한글 깨짐이 없어진 것을 확인할 수 있다. content type에서 다른 파일도 UTF-8로 설정해준다면 한글깨짐 현상을 방지할 수 있을 것이다.!!

Log4j를 설정하는 방법은 일반적으로 두가지 방법이 있는데, 1) xml 파일 이용방법 2) properties 파일을 이용방법 이 있다. 오늘은 eclipse dynamic web project 환경에서 Log4j properties파일을 추가하는 방법을 알아보자. * 설치파일: http://logging.apache.org/log4j/1.2/download.html Apache log4j 1.2 - Download Apache log4j 1.2 Log4j 2 is nominated for the JAX Innovation Awards! Do you like its performance, garbage-free logging, and easy and flexible configuration? Log4..

1.환경설정 -- JDK1.8 -- Servlet(Tomcat 8.5) * 마우스 오른쪽 클릭 - New - Dynamic Web Project 를 클릭 *Target runtime: 설치해둔 톰캣 8.5 지정 * Browe 클릭 후 apache-tomcat-8.541 선택 * JDK1.8 설치후 JDK 1.8 설치 후 JDK 1.8설정 * 설치된 JDK1.8을 선택한다. * 톰캣과 JDK를 설치하면 FINISH 를 누른다.!! *Java Resources에 보면 설정한 Apache Tomcat 8.5와 JDK 1.8 정보 확인 가능 혹 처음 설정을 못하였다 하더라도 - JDK: 프로젝트명 오르쪽 클릭 - build-path에서 수정 가능 - Tomcat: server 톰캣은 Window - Prefer..