明廷盛 嘻嘻😁

1. jdk用21的

2. idea最低用2023.3.3

3. 相关配置更新为jdk21的

3-1. Maven的settings.xml文件

回忆一下哈, 这个文件改三个地方:①下的包存在哪里 ②配置阿里下载镜像 ③jdk版本配置(只需要改这里)

<profile>    
<id>myjdk</id>
<activation>
<activeByDefault>true</activeByDefault>
<jdk>21</jdk>
</activation>
<properties>
<maven.compiler.source>21</maven.compiler.source>
<maven.compiler.target>21</maven.compiler.target>
<maven.compiler.compilerVersion>21</maven.compiler.compilerVersion>
</properties>
</profile>

4. maven相关依赖

4-1. Hutool工具箱

https://hutool.cn/

<!--Hutool工具库-->
<dependency>
<groupId>cn.hutool</groupId>
<artifactId>hutool-all</artifactId>
<version>5.8.38</version>
</dependency>
  • Title:
  • Author: 明廷盛
  • Created at : 2026-04-05 13:52:56
  • Updated at : 2026-04-05 13:52:56
  • Link: https://blog.20040424.xyz/2026/04/05/⚔️实战项目/2. 毕设/学习时记录的/
  • License: All Rights Reserved © 明廷盛