diff --git a/src/main/java/org/xiaowu/behappy/redirect/BehappyRedirectApplication.java b/src/main/java/org/xiaowu/behappy/redirect/BehappyRedirectApplication.java index fa5f485..1a0ce02 100644 --- a/src/main/java/org/xiaowu/behappy/redirect/BehappyRedirectApplication.java +++ b/src/main/java/org/xiaowu/behappy/redirect/BehappyRedirectApplication.java @@ -6,7 +6,6 @@ import org.springframework.http.ResponseEntity; import org.springframework.stereotype.Controller; import org.springframework.util.StringUtils; -import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestParam; import org.springframework.web.servlet.view.RedirectView; @@ -30,7 +29,7 @@ public static void main(String[] args) { @Value("${server.port:8080}") private String port; - @RequestMapping + @RequestMapping("/**") public RedirectView redirect(@RequestParam(required = false) Map params) { if (!StringUtils.hasLength(redirectUrl)){ redirectUrl = "http://127.0.0.1:%s/test-callback".formatted(port); diff --git a/src/main/resources/behappy-redirect.exe b/src/main/resources/behappy-redirect.exe index d20e0f2..8687b87 100644 Binary files a/src/main/resources/behappy-redirect.exe and b/src/main/resources/behappy-redirect.exe differ