springboot3

This commit is contained in:
Jesse-Ma
2022-12-27 15:04:01 +08:00
parent a82eef1afe
commit 178ae14192
3 changed files with 7 additions and 12 deletions

View File

@@ -5,7 +5,7 @@
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.7.6</version>
<version>3.0.1</version>
<relativePath/> <!-- lookup parent from repository -->
</parent>
<groupId>com.flagnote</groupId>
@@ -14,7 +14,7 @@
<name>flagnote-service</name>
<description>Demo project for Spring Boot</description>
<properties>
<java.version>11</java.version>
<java.version>17</java.version>
</properties>
<dependencies>
<dependency>
@@ -49,7 +49,6 @@
<scope>test</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
@@ -66,5 +65,4 @@
</plugin>
</plugins>
</build>
</project>

View File

@@ -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;

View File

@@ -14,7 +14,7 @@ spring:
password: flagnote1qazx
autoConnectRetry: true
socketKeepAlive: true
socketTimeout: 1000
socketTimeout: 10000
management:
# server: