public String login( ServletRequest request, HttpSession session, Model model) throws Exception { String[] permitIP = {"ip1","ip2"}; HttpServletRequest req = null; if (request instanceof HttpServletRequest) { req = (HttpServletRequest) request; } String reqIP = req.getRemoteAddr(); logger.debug("getRemoteAddr : " + req.getRemoteAddr()); boolean rtn = false; for(int i=0; i