| | |
| | | import javax.annotation.Resource; |
| | | import javax.imageio.ImageIO; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.util.FastByteArrayOutputStream; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | |
| | | * @author ruoyi |
| | | */ |
| | | @RestController |
| | | @Slf4j |
| | | public class CaptchaController |
| | | { |
| | | @Resource(name = "captchaProducer") |
| | |
| | | data.put("txt","77777"); |
| | | ajax.put("msg","操作成功"); |
| | | ajax.put("data",data); |
| | | |
| | | log.info("value:{}",code); |
| | | return ajax; |
| | | } |
| | | } |