Tomcat 서버 더블클릭 > Modules > path 를 '/'  루트로 변경해주기

 

 mapper.xml 소스를 아무리 수정해도 변경되지 않았다.

Tomcat 서버 > 더블클릭 > Open launch configuration  > Arguments

하단 VM arguments 에 있는 -Dcatalina.base 경로를 따라가기

"C:/workspace 경로 /.metadata/.plugins/org.eclipse.wst.server.core/tmp1"

 

1. 내폴더 창을 열고
2. 소스들은 clean 해놓고 이클립스 닫아주고
3. 해당경로에 있는 tmp1 파일들 다 날려주기

다음과 같이 argument 값을 넘겨주지 않아서 오류발생 한경우 

ArrayIndexOutOfBoundsException 에러

Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: Index 0 out of bounds for length 0
at polymorphism.TvUser.main(TvUser.java:8)  


프로젝트 우클릭 > Run As > Run Configurations >  Arguments 에 입력후 Apply , Run

명령형매개변수 설정하기

 

명령형매개변수 설정하기

정상실행

+ Recent posts