| | |
| | | |
| | | import com.fgkj.actions.ActionUtil; |
| | | import com.fgkj.dto.ServiceModel; |
| | | import com.fgkj.dto.User_inf; |
| | | |
| | | public class CrossDomainLimitFilter implements Filter{ |
| | | public static final int max_connect_count = 10; |
| | |
| | | } |
| | | SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); |
| | | System.out.println("跨域访问域名或ip:"+request.getRemoteHost()+" At "+sdf.format(new Date())); |
| | | |
| | | User_inf u=new User_inf(); |
| | | u.setUSnId(""); |
| | | u.setUpassword(""); |
| | | u.setUId(9999); |
| | | request.getSession().setAttribute("user", u); |
| | | isAlowVisit = true; |
| | | }else{ |
| | | model.setMsg("校验码发送失败,key:"+key); |