From 178ae141921660442945a427b86e0d0e922d6f38 Mon Sep 17 00:00:00 2001 From: Jesse-Ma <24167796@qq.com> Date: Tue, 27 Dec 2022 15:04:01 +0800 Subject: [PATCH] springboot3 --- pom.xml | 12 +++++------- .../com/flagnote/note/controller/NoteController.java | 5 +---- src/main/resources/application.yml | 2 +- 3 files changed, 7 insertions(+), 12 deletions(-) diff --git a/pom.xml b/pom.xml index 141a1c6..d93a7b7 100644 --- a/pom.xml +++ b/pom.xml @@ -5,7 +5,7 @@ org.springframework.boot spring-boot-starter-parent - 2.7.6 + 3.0.1 com.flagnote @@ -14,7 +14,7 @@ flagnote-service Demo project for Spring Boot - 11 + 17 @@ -26,9 +26,9 @@ spring-boot-starter-data-mongodb - org.springframework.boot - spring-boot-starter-quartz - + org.springframework.boot + spring-boot-starter-quartz + org.springframework.boot spring-boot-starter-web @@ -49,7 +49,6 @@ test - @@ -66,5 +65,4 @@ - diff --git a/src/main/java/com/flagnote/note/controller/NoteController.java b/src/main/java/com/flagnote/note/controller/NoteController.java index 24018f6..a6cfdaf 100644 --- a/src/main/java/com/flagnote/note/controller/NoteController.java +++ b/src/main/java/com/flagnote/note/controller/NoteController.java @@ -4,12 +4,9 @@ import java.io.IOException; import java.io.OutputStream; import java.util.Date; -import javax.servlet.http.HttpServletResponse; - import org.springframework.beans.factory.annotation.Autowired; import org.springframework.http.HttpHeaders; import org.springframework.http.MediaType; -import org.springframework.stereotype.Service; import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMethod; @@ -24,7 +21,7 @@ import com.flagnote.note.entity.NoteMeta; import com.flagnote.note.service.NoteService; import com.flagnote.note.utils.BizKeyUtils; -import cn.hutool.core.date.DateUtil; +import jakarta.servlet.http.HttpServletResponse; import lombok.extern.slf4j.Slf4j; diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml index c7bfdf1..0f6a6a9 100644 --- a/src/main/resources/application.yml +++ b/src/main/resources/application.yml @@ -14,7 +14,7 @@ spring: password: flagnote1qazx autoConnectRetry: true socketKeepAlive: true - socketTimeout: 1000 + socketTimeout: 10000 management: # server: