From 77c2934d9c9784dcfc5f7c5ae3dc871bc6eb06b8 Mon Sep 17 00:00:00 2001 From: Struchkov Mark Date: Sat, 11 Feb 2023 12:54:26 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9F=D0=B5=D1=80=D0=B5=D1=85=D0=BE=D0=B4=20?= =?UTF-8?q?=D0=BD=D0=B0=20SpringBoot=203?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pom.xml | 11 +++-------- .../example/swagger/controller/PointController.java | 4 ++-- 2 files changed, 5 insertions(+), 10 deletions(-) diff --git a/pom.xml b/pom.xml index ce4727f..44fe8df 100644 --- a/pom.xml +++ b/pom.xml @@ -5,7 +5,7 @@ org.springframework.boot spring-boot-starter-parent - 2.7.8 + 3.0.2 @@ -26,15 +26,10 @@ spring-boot-starter-web - - io.swagger.core.v3 - swagger-annotations - 2.2.8 - org.springdoc - springdoc-openapi-ui - 1.6.14 + springdoc-openapi-starter-webmvc-ui + 2.0.2 diff --git a/src/main/java/org/sadtech/example/swagger/controller/PointController.java b/src/main/java/org/sadtech/example/swagger/controller/PointController.java index f4fda73..2a30076 100644 --- a/src/main/java/org/sadtech/example/swagger/controller/PointController.java +++ b/src/main/java/org/sadtech/example/swagger/controller/PointController.java @@ -3,6 +3,8 @@ package org.sadtech.example.swagger.controller; import io.swagger.v3.oas.annotations.Operation; import io.swagger.v3.oas.annotations.Parameter; import io.swagger.v3.oas.annotations.tags.Tag; +import jakarta.validation.constraints.Min; +import jakarta.validation.constraints.NotBlank; import org.sadtech.example.swagger.dto.TypeOperation; import org.sadtech.example.swagger.dto.UserDto; import org.springframework.http.HttpStatus; @@ -13,8 +15,6 @@ import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestPart; import org.springframework.web.bind.annotation.RestController; -import javax.validation.constraints.Min; -import javax.validation.constraints.NotBlank; import java.util.Map; /**