From 0261d270c9f9b5282d923e585c307aee44b0612c Mon Sep 17 00:00:00 2001 From: baizonghao <1719256278@qq.com> Date: 星期四, 23 三月 2023 14:23:39 +0800 Subject: [PATCH] 删除警员,对应案件 --- src/main/java/com/example/jz/controller/TestController.java | 7 ++++++- 1 files changed, 6 insertions(+), 1 deletions(-) diff --git a/src/main/java/com/example/jz/controller/TestController.java b/src/main/java/com/example/jz/controller/TestController.java index 7cdf69a..7cde586 100644 --- a/src/main/java/com/example/jz/controller/TestController.java +++ b/src/main/java/com/example/jz/controller/TestController.java @@ -1,8 +1,11 @@ package com.example.jz.controller; +import com.example.jz.auth.TokenJwtManager; import com.example.jz.exception.BusinessException; import io.swagger.annotations.Api; import io.swagger.annotations.ApiOperation; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.security.core.context.SecurityContextHolder; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.RestController; @@ -14,11 +17,13 @@ @RestController("test") @Api(value = "娴嬭瘯鎺ュ彛", tags = "娴嬭瘯鎺ュ彛") public class TestController { + @Autowired + TokenJwtManager tokenJwtManager; @GetMapping("/business") @ApiOperation("涓氬姟寮傚父娴嬭瘯") public String test() { - throw new BusinessException("涓氬姟寮傚父"); + return null; } @GetMapping("/custom") -- Gitblit v1.8.0