From 544954c5af522a6bb32a379697783463b0eabd65 Mon Sep 17 00:00:00 2001 From: xueqingkun Date: Tue, 16 Jul 2024 10:55:58 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3swagger=E4=BE=9D=E8=B5=96?= =?UTF-8?q?=E5=86=B2=E7=AA=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pom.xml | 6 ++++++ .../police/controller/ComDictionaryController.java | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 8fcc121..0037d8e 100644 --- a/pom.xml +++ b/pom.xml @@ -91,6 +91,12 @@ com.github.xiaoymin knife4j-spring-boot-starter 2.0.8 + + + jakarta.validation + jakarta.validation-api + + diff --git a/src/main/java/com/supervision/police/controller/ComDictionaryController.java b/src/main/java/com/supervision/police/controller/ComDictionaryController.java index 8c060b3..31750a2 100644 --- a/src/main/java/com/supervision/police/controller/ComDictionaryController.java +++ b/src/main/java/com/supervision/police/controller/ComDictionaryController.java @@ -40,7 +40,7 @@ public class ComDictionaryController { return dictionaryService.findDictionaryListByType(dictionaryByTypeParam); } - @PostMapping + @PostMapping("/add") @ApiOperation(value = "新增字典", httpMethod = "POST") public R insertDictionary(@RequestBody @Validated ComDictionary dictionary) { return dictionaryService.insertDictionary(dictionary);