1.代码中问题
-
maven中引入jdk17去掉的包
<dependency> <groupId>javax.xml.bind</groupId> <artifactId>jaxb-api</artifactId> <version>2.3.0</version> </dependency> <dependency> <groupId>com.sun.xml.bind</groupId> <artifactId>jaxb-impl</artifactId> <version>2.3.0</version> </dependency> <dependency> <groupId>com.sun.xml.bind</groupId> <artifactId>jaxb-core</artifactId> <version>2.3.0</version> </dependency> <dependency> <groupId>javax.activation</groupId> <artifactId>activation</artifactId> <version>1.1.1</version> </dependency>
-
Base64加解密方法修改
已删除: sun.misc.BASE64Decoder 改为: Base64.getDecoder().decode
-
优化代码问题
if语句带上大括号
2. idea工具配置问题
1.File -> Project Structure 中相关版本的控制都改为17
每个模块都要修改
2.File->Settings->Build,Execution,Deployment -> Compiler -> java Compiler
编译版本改为对应的17版本