본문 바로가기

개발자공부

정규식 정리 http://regexr.com/ var alphanumeric = /^[a-zA-Z0-9]+$/; // 영어 , 숫자 var alpha = /^[a-zA-Z]+$/; // 영어 var numberic = /^[0-9]+$/; // 숫자 var telnumberic = /^[0-9-]+$/; //전화번호 숫자, - var hangle = /^[\uAC00-\uD7A3]+$/; // 한글 var engkornum = /^[a-zA-Z0-9\uAC00-\uD7A3\s-_]+$/; // 영어 , 숫자 , 한글 , - , _ var email = /^[0-9a-zA-Z]([-_\.]?[0-9a-zA-Z])*@[0-9a-zA-Z]([-_\.]?[0-9a-zA-Z])*\.[a-zA-Z]{2,3}$/i; // 이메일.. 더보기
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(.. 더보기
MyBatis 레퍼런스 문서 http://mybatis.github.io/spring/ko/index.html 더보기