JAVA 단에서 alert 처리하기 – 로그인 권한 설정 Spring mvc:interceptors 인터셉트 AuthCheckInterceptor.java - 인터셉터 파일 해당 url의 첫번째 path로 제어 package com.ssd.admin.util; import java.io.PrintWriter; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpSession; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.context.WebApplicationContext; import org.springframework.w.. 더보기 JAVA paramMap 특수문자 검사 public boolean chkSpecStr(String str){ if(str.matches("[0-9|a-z|A-Z|ㄱ-ㅎ|ㅏ-ㅣ|가-힝]*")){ return true; }else{ return false; } } public String chkParamMap(Map paramMap){ Set set = paramMap.entrySet(); Iterator it = set.iterator(); while(it.hasNext()){ Map.Entry e = (Map.Entry)it.next(); System.out.println("키값= "+e.getKey()+ " value= "+e.getValue()); if(!e.getKey().equals("email")||!e.getKey().equals(.. 더보기 스프링 암화화 처리 http://cluster1.cafe.daum.net/_c21_/bbs_search_read?grpid=1DpW4&fldid=Pgo6&datanum=5&openArticle=true&docid=1DpW4Pgo6520120409220933 나중에 정리하기 더보기 이전 1 ··· 11 12 13 14 15 16 17 18 다음