Art*_*hur 8 java compiler-errors build maven
我有这个错误
如何解决?
Caused by: java.lang.IllegalArgumentException: Unsupported class file major version 57
Run Code Online (Sandbox Code Playgroud)
我有这样的 POM
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.1.5.RELEASE</version>
</parent>
<properties>
<java.version>13</java.version>
</properties>
Run Code Online (Sandbox Code Playgroud)
项目有很多文字,因此需要 Java 13。
小智 14
在 pom.xml 中更改 Spring boot 版本为我解决了这个问题。
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.2.0.RELEASE</version>
<relativePath/> <!-- lookup parent from repository -->
</parent>
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
24759 次 |
| 最近记录: |