文件编码格式修改为UTF-8
java 编译版本
File -> settings -> Build,Execution,Deployment->Compiler->Java Compiler
项目jdk版本
File -> Project Struncture
添加jdk17
Maven settings.xml 指定编译版本
Maven pom.xml 中配置
<properties>
<java.version>17</java.version>
<maven.compiler.source>17</maven.compiler.source>
<maven.compiler.target>17</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>