언어
20140711 Exception
1. Exception 업무 Exception : 업무적인 오류. 탈퇴고객 로그인 등System Exception : 시스템 오류, 시스템에서 나오는 오류 IBatis 에서는 Req, Res, Commit 과 rollback 이 자동화.*EJB 직접하는경우 -> commit,rollBack 해야함 . 관리 x 20140714 추가 Exception -> Throwtry {abc();}catch (Exception ex){e.printstace();} abc() throws Exception {try{throw new Exception();}catch(Exception e ){throw exception ;} 부른 메소드에서 throw 날려서 상위메소드에서 exceptionl;throws : 상위클래스 e..
20141230 DB
select a.*,b.*from( select 10 as ordno from dual union all select 20 as ordno from dual union all select 30 as ordno from dual ) a,( select a.ordno,a.seq, (case a.seq when ( select min(b.seq) from ( select 10 as ordno, 2 as seq, 1000 as price from dual union all select 10 as ordno, 5 as seq, 3000 as price from dual union all select 10 as ordno, 3 as seq, 2000 as price from dual )b ) then a.price..
20140707 파일다운로드취약점 패턴
1. 파일다운로드 취약점 패턴 CheckFile = "png, gif, jpg, jpeg ";fileExtension = req.getString("파일명");if(checkFile.lastindexof(filecheck
20140530 [SQL]
[SQL] 트리거 : 이벤트 감지, 함수나 프로시저를 실행시켜줌.프로시저 : 반복적인 작업이나 SQL, PLSQL 실행(Function 에 큰의미)*PLSQL = sql + 로직트래젝션 : 일을 한번에 묶어두는것 (일처리 단위)롤백과 커밋이 단조러워짐 뷰 : 필요한 부분만 따로 때네서 볼수 있음