From 3911536f257fedba3703ff0f78b31c1849d4869f Mon Sep 17 00:00:00 2001 From: 克 刘 <4345453@qq.com> Date: Wed, 25 Mar 2020 17:31:56 +0800 Subject: [PATCH] 1、优化DockerFile 中Docker容器所需字体 2、增加kidgrow-mqcenter-rabbit 项目 3、修改kidgrow-logcenter项目名 4、优化kidgrow-log-spring-boot-starter 扩展point 日志 5、完善kidgrow-config中fat、dev 环境application.properties 6、优化Docker基础容器,优化Docker容器中对于验证码所需字体 7、优化kidgrow-web-manager 增加zuul 网关URL配置 --- kidgrow-uaa/kidgrow-uaa-server/src/main/java/com/kidgrow/oauth2/controller/ValidateCodeController.java | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/kidgrow-uaa/kidgrow-uaa-server/src/main/java/com/kidgrow/oauth2/controller/ValidateCodeController.java b/kidgrow-uaa/kidgrow-uaa-server/src/main/java/com/kidgrow/oauth2/controller/ValidateCodeController.java index 03d9e5d..0c72720 100644 --- a/kidgrow-uaa/kidgrow-uaa-server/src/main/java/com/kidgrow/oauth2/controller/ValidateCodeController.java +++ b/kidgrow-uaa/kidgrow-uaa-server/src/main/java/com/kidgrow/oauth2/controller/ValidateCodeController.java @@ -7,6 +7,7 @@ import com.wf.captcha.base.Captcha; import com.wf.captcha.utils.CaptchaUtil; import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.http.MediaType; import org.springframework.stereotype.Controller; import org.springframework.util.Assert; import org.springframework.web.bind.annotation.GetMapping; @@ -33,13 +34,15 @@ * * @throws Exception */ - @GetMapping(SecurityConstants.DEFAULT_VALIDATE_CODE_URL_PREFIX + "/{deviceId}") + @GetMapping(value=SecurityConstants.DEFAULT_VALIDATE_CODE_URL_PREFIX + "/{deviceId}",produces = MediaType.APPLICATION_OCTET_STREAM_VALUE) public void createCode(@PathVariable String deviceId, HttpServletResponse response) throws Exception { Assert.notNull(deviceId, "机器码不能为空"); // 设置请求头为输出图片类型 CaptchaUtil.setHeader(response); // 三个参数分别为宽、高、位数 +// GifCaptcha gifCaptcha = new GifCaptcha(100, 35, 4,new Font("actionj", 1, 32)); GifCaptcha gifCaptcha = new GifCaptcha(100, 35, 4); +// gifCaptcha.setFont(Captcha.FONT_1); // 设置类型:字母数字混合 gifCaptcha.setCharType(Captcha.TYPE_DEFAULT); // 保存验证码 -- Gitblit v1.8.0