refactor(springboot-parent): 升级至 Java 17 及 Jakarta 包迁移

This commit is contained in:
曾文豪
2025-12-11 14:40:52 +08:00
parent 57f0e2ab82
commit cf6d05c2b4
50 changed files with 446 additions and 167 deletions

View File

@@ -6,15 +6,15 @@
<parent>
<groupId>com.tiesheng.springboot-parent</groupId>
<artifactId>springboot-parent</artifactId>
<version>2.0.33</version>
<version>4.0.0.alpha1</version>
</parent>
<artifactId>springboot-ademo</artifactId>
<version>2.0.33</version>
<version>4.0.0.alpha1</version>
<properties>
<maven.compiler.source>8</maven.compiler.source>
<maven.compiler.target>8</maven.compiler.target>
<maven.compiler.source>17</maven.compiler.source>
<maven.compiler.target>17</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<!-- 该模块不发布到maven仓库 -->
<maven.deploy.skip>true</maven.deploy.skip>

View File

@@ -10,7 +10,7 @@ import com.tiesheng.web.service.TieshengWebConfigurer;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import javax.servlet.http.HttpServletResponse;
import jakarta.servlet.http.HttpServletResponse;
import java.util.Objects;
@Component

View File

@@ -35,7 +35,7 @@ import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import javax.servlet.http.HttpServletResponse;
import jakarta.servlet.http.HttpServletResponse;
import java.io.File;
import java.util.function.Consumer;