class SysLoginController extends AbstractController {

    private final Producer producer;
    private final RedisTemplate redisTemplate;

    @AuthIgnore
    @RequestMapping(value = "/", method = RequestMethod.GET)
    public R hello() {
        return R.ok("hello welcome to use x-springboot");
    }

    /**
     * 验证码
     */
    @AuthIgnore
    @SneakyThrows
    @RequestMapping(value = "/sys/code/{time}", method = RequestMethod.GET)
    public void captcha(@PathVariable("time") String time, HttpServletResponse response) {<FILL_FUNCTION_BODY>}

    /**
     * 退出
     */
    @AuthIgnore
    @GetMapping(value = "/sys/logout")
    public void logout() {

    }
}

        response.setHeader("Cache-Control", "no-store, no-cache");
        response.setContentType("image/jpeg");

        //生成文字验证码
        String text = producer.createText();
        log.info("验证码:{}", text);
        //生成图片验证码
        BufferedImage image = producer.createImage(text);
        //redis 60秒
        redisTemplate.opsForValue().set(Constant.NUMBER_CODE_KEY + time, text, 60, TimeUnit.SECONDS);

        ServletOutputStream out = response.getOutputStream();
        ImageIO.write(image, "jpg", out);
        IoUtil.close(out);
    
<methods>public non-sealed void <init>() <variables>protected com.suke.czx.common.utils.MPPageConvert mpPageConvert,public com.fasterxml.jackson.databind.ObjectMapper objectMapper