From bcc9e330401ec420aa024e5a11d6eb5fa14eca7f Mon Sep 17 00:00:00 2001 From: msb_89821 Date: Wed, 19 Oct 2022 17:44:59 +0800 Subject: [PATCH] =?UTF-8?q?add:=E5=AE=9E=E7=8E=B0=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../mashibing/online/text/controller/TokenTest.java | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/oneLineTxt/v1/onelinetextplublic/api-passinger/src/main/java/mashibing/online/text/controller/TokenTest.java b/oneLineTxt/v1/onelinetextplublic/api-passinger/src/main/java/mashibing/online/text/controller/TokenTest.java index b3e54fd..cb19270 100644 --- a/oneLineTxt/v1/onelinetextplublic/api-passinger/src/main/java/mashibing/online/text/controller/TokenTest.java +++ b/oneLineTxt/v1/onelinetextplublic/api-passinger/src/main/java/mashibing/online/text/controller/TokenTest.java @@ -2,23 +2,25 @@ package mashibing.online.text.controller; import com.mashibing.dto.ResponseResult; +import lombok.extern.slf4j.Slf4j; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; +@Slf4j @RestController @RequestMapping("/test") public class TokenTest { @GetMapping("/authTokenTest") - public ResponseResult authTokenTest(String token){ - + public ResponseResult authTokenTest(){ + log.info("需要token 校验的接口 "); return ResponseResult.success("auth token pass!"); } @GetMapping("/noTokenTest") - public ResponseResult noTokenTest(String token){ - + public ResponseResult noTokenTest(){ + log.info("不需要token 校验的接口 "); return ResponseResult.success(" not need token !"); }