三种实现验证码的方式(兼容谷歌和IE11)

本案例借鉴了其他人的博客,且做了一些修改,采用spring4.3.8版本即可

项目结构如下:

三种实现验证码的方式(兼容谷歌和IE11)_第1张图片

导包:

访问项目中的jsp页面地址:http://localhost:8000/spring_check/test.jsp

test.jsp如下:

<%@ page contentType="text/html" pageEncoding="UTF-8"%>




三个验证码测试
<%
	String path = request.getContextPath();
	String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/"; 
%>


                    
                    

你可能感兴趣的:(VIP专栏)