使用方法
/**
* 验证码 (注解跳过权限验证)
*/
@Login(action = Action.Skip)
@ResponseBody
@RequestMapping("/verify")
public void verify() {
try {
String verifyCode = CaptchaUtil.outputImage(response.getOutputStream());
System.out.println("验证码:" + verifyCode);
} catch (IOException e) {
e.printStackTrace();
}
}