본문 바로가기

분류 전체보기15

mybatis에서 NumberformatException 처리 java.lang.NumberFormatException: For input string: “Y” ### Error querying database. Cause: java.lang.NumberFormatException: For input string: “Y” ### Cause: java.lang.NumberFormatException: For input string: “Y” Map dataMap = new HashMap(); dataMap.put("useYN", "Y"); . . dummyMapper.getData(dataMap); 서비스에서 useYN값을 Y로 셋팅하고 Mapper를 호출하였는데 왠걸... mybatis 에서 NumberformatException 에러를 내고 있다. 그것도 "Y" 라.. 2020. 7. 1.
BasicErrorController.error Ambiguous 처리 2019/09/18 - [일이야기/Spring] - Tomcat 구동시 ErrorPageFilter 에러 처리 Tomcat 구동시 ErrorPageFilter 에러 처리 기본적으로 Spring boot에서는 에러를 처리하는 filter가 자동으로 동작한다. 하지만 프로젝트에 따라 Application내에서 에러 핸들링을 달리해야 하는데 Filter에서 선처리하고 아래와 같은 에러 로그를 출력한다.. naning9.tistory.com 이전 글에서 ErrorPageFilter를 disabled하고 Application 내에서 에러페이지를 분기하려고 GlobalErrorController를 만들었는데 아래와 같은 에러가 발생했다. org.springframework.beans.factory.BeanCreat.. 2019. 9. 18.
Tomcat 구동시 ErrorPageFilter 에러 처리 기본적으로 Spring boot에서는 에러를 처리하는 filter가 자동으로 동작한다. 하지만 프로젝트에 따라 Application내에서 에러 핸들링을 달리해야 하는데 Filter에서 선처리하고 아래와 같은 에러 로그를 출력한다. ERROR [] --- ErrorPageFilter : Cannot forward to error page for request [/] as the response has already been committed. As a result, the response may have the wrong status code. If your application is running on WebSphere Application Server you may be able to resolve t.. 2019. 9. 18.
ANT로 SFTP 업로드 하기 sftp 업로드를 위해서 http://www.jcraft.com/jsch/ 에서 jsch-0.1.xx.jar 를 받아야 한다. 수정된 파일만 업로드 하기 위해서 modified 내용을 작성해야 한다. propertyfile을 작성하여 수정된 파일이 있는지 검색하고 수정된 것이 있으면 업로드 한다. build.xml 의 basedir 과 같은 경로에 cache 파일이 생성되는데 이 파일 업로드를 제외하면 수정된 파일만 올라가지 않는다. 절대 exclude 로 설정하면 안된다. build.xml 2015. 6. 11.
반응형