From 5a3c335c79286a92d665279cc38565fa870085ae Mon Sep 17 00:00:00 2001 From: yitonglei Date: Tue, 17 May 2022 13:23:43 +0800 Subject: [PATCH] =?UTF-8?q?1=E3=80=81=E4=BF=AE=E6=94=B9swagger=E7=9A=84?= =?UTF-8?q?=E7=9B=B8=E5=85=B3=E6=B3=A8=E8=A7=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/hisense/monitormanage/controller/Controller.java | 2 ++ .../monitormanage/MonitorManageApplicationTests.java | 8 +------- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/src/main/java/com/hisense/monitormanage/controller/Controller.java b/src/main/java/com/hisense/monitormanage/controller/Controller.java index 7de7ae7..189b0c2 100644 --- a/src/main/java/com/hisense/monitormanage/controller/Controller.java +++ b/src/main/java/com/hisense/monitormanage/controller/Controller.java @@ -5,6 +5,7 @@ import com.hisense.monitormanage.dto.*; import com.hisense.monitormanage.entity.*; import com.hisense.monitormanage.mapper.*; import com.hisense.monitormanage.service.*; +import io.swagger.annotations.Api; import io.swagger.annotations.ApiImplicitParam; import io.swagger.annotations.ApiImplicitParams; import io.swagger.annotations.ApiOperation; @@ -26,6 +27,7 @@ import java.util.Map; @RestController @RequestMapping("api/project") +@Api(tags="通用") public class Controller { @Autowired diff --git a/src/test/java/com/hisense/monitormanage/MonitorManageApplicationTests.java b/src/test/java/com/hisense/monitormanage/MonitorManageApplicationTests.java index 2d65348..bed34ea 100644 --- a/src/test/java/com/hisense/monitormanage/MonitorManageApplicationTests.java +++ b/src/test/java/com/hisense/monitormanage/MonitorManageApplicationTests.java @@ -37,11 +37,5 @@ class MonitorManageApplicationTests { } - @Test - public void reverseGeocodeTest(){ - String location = "location"; - Map map = new HashMap<>(); - map.put("location",location); - monitorService.reverseGeocode(map); - } + }