fix: 修复bean实例化问题

This commit is contained in:
landaiqing
2024-05-16 13:53:28 +08:00
parent 40afaf4e96
commit 8f4b8a3331
6 changed files with 29 additions and 20 deletions

View File

@@ -6,10 +6,7 @@ import com.schisandra.auth.common.redis.RedisUtil;
import com.schisandra.auth.common.utils.AESUtils;
import com.schisandra.auth.common.utils.RotateImageUtils;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;
import javax.imageio.ImageIO;
@@ -39,7 +36,7 @@ public class ReactRotateCaptchaController {
* @author zlg
* @date: 2024/5/10 16:28
*/
@PostMapping("get")
@GetMapping("get")
public CaptchaResult get() throws Exception {
RotateImageUtils rotateImageUtils = new RotateImageUtils();
CompletableFuture<HashMap> futurePrice = CompletableFuture.supplyAsync(() -> {