@RequestMapping( "/captcha")无法获取到本地端口号
这个url地址在浏览器打开显示的是
http://localhost/captcha
但我需要的地址是
http://localhost:8080/captcha
@RequestMapping( "/captcha")没有获取到本地端口号接着他下面的代码段无法执行
``
``
@RequestMapping( "/captcha")无法获取到本地端口号
这个url地址在浏览器打开显示的是
http://localhost/captcha
但我需要的地址是
http://localhost:8080/captcha
``
@RequestMapping( "/captcha")
public void captcha(HttpServletRequest request, HttpServletResponse response) throws Exception {
System.out.println("11111111111111111111111");
response.setHeader("Cache-Control", "no-store, no-cache");
response.setContentType("image/jpeg");
SpecCaptcha captcha=new SpecCaptcha(200,33,4);
captcha.setCharType(Captcha.TYPE_ONLY_NUMBER);
CaptchaUtil.out(captcha,request,response);
System.out.println("222222222222222222222222");
}
这种问题该怎么处理啊?
这种问题该怎么处理啊?
