@Controller @RequestMapping(value="/captcha") public class CaptchaController extends Object
| Constructor and Description |
|---|
CaptchaController() |
| Modifier and Type | Method and Description |
|---|---|
BufferedImage |
getCaptcha() |
Boolean |
validateCaptcha(CaptchaRequest captchaRequest) |
Boolean |
validateCaptchaFromForm(CaptchaRequest captchaRequest) |
@GetMapping(produces="image/jpeg") @ResponseBody public BufferedImage getCaptcha()
@PostMapping @ResponseBody public Boolean validateCaptcha(@RequestBody CaptchaRequest captchaRequest) throws CaptchaException
CaptchaException@PostMapping(headers="Content-Type=application/x-www-form-urlencoded") @ResponseBody public Boolean validateCaptchaFromForm(@ModelAttribute CaptchaRequest captchaRequest) throws CaptchaException
CaptchaExceptionCopyright © 2017. All rights reserved.