Maven

    [MAVEN] m2e 문제 - cannot nest inside to enable the nesting exclude

    Maven 프로젝트로 WebApp을 만들때 다음과 같은 창이 뜰때가 있습니다. Finish든 Cancel이든 클릭 후 프로젝트를 확인하면 source directory가 src로만 잡혀 있습니다. 그래서 프로젝트 디렉터리 구조가 아래와 같게 됩니다. 이유는 m2e가 source directory를 src/main/java가 아닌 src/로 만들어버립니다. 그래서 프로젝트 properties > java build path 로 들어가면 source 경로가 하나밖에 없습니다. 해결방법 아래의 src 를 Remove 합니다. 그리고 프로젝트 오른쪽 클릭 > Maven > Update Project를 합니다. 그럼 프로젝트는 다음과 같이 프로젝트 구성이 달라지게 됩니다. 이 다음 Maven 프로젝트 세팅을 마치..

    log4j 사용하기 - log4j properties 설정

    log4j란 log4j는 로그를 자동으로 출력해 주는 오픈소스 라이브러리입니다. 출력하고자 하는 log를 "콘솔", "로그 파일", "DB 로그" 등으로 남길 수 있습니다. log4j 링크 오픈소스 링크 : logging.apache.org/log4j/1.2/ Apache log4j 1.2 - End of Life On August 5, 2015 the Logging Services Project Management Committee announced that Log4j 1.x had reached end of life. For complete text of the announcement please see the Apache Blog. Users of Log4j 1 are recommended to u..