idea Error:java: 无效的目标发行版: 17

Error:java: 无效的目标发行版: 17

compiler.xml

xml 复制代码
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
  <component name="CompilerConfiguration">
    <annotationProcessing>
      <profile name="Maven default annotation processors profile" enabled="true">
        <sourceOutputDir name="target/generated-sources/annotations" />
        <sourceTestOutputDir name="target/generated-test-sources/test-annotations" />
        <outputRelativeToContentRoot value="true" />
        <module name="sharding-jdbc-examples" />
      </profile>
    </annotationProcessing>
    <bytecodeTargetLevel>
      <module name="sharding-jdbc-examples" target="17" />
    </bytecodeTargetLevel>
  </component>
  <component name="JavacSettings">
    <option name="ADDITIONAL_OPTIONS_OVERRIDE">
      <module name="sharding-jdbc-examples" options="-parameters" />
    </option>
  </component>
</project>
复制代码
<bytecodeTargetLevel>
  <module name="sharding-jdbc-examples" target="17" />
</bytecodeTargetLevel>

改成

xml 复制代码
    <bytecodeTargetLevel>
      <module name="sharding-jdbc-examples" target="8" />
    </bytecodeTargetLevel>
相关推荐
Elieal4 分钟前
深入 Maven:从仓库配置到私服架构的进阶实践
java·架构·maven
学到头秃的suhian16 分钟前
垃圾收集器
java·jvm
javpy20 分钟前
为什么Service层和Mapper层需要实现interface接口
java·springboot
Han.miracle29 分钟前
Java线程的学习—多线程(一)
java·开发语言·学习
人间打气筒(Ada)31 分钟前
yum安装k8s集群----基于centos7.9
java·容器·kubernetes
Filotimo_1 小时前
Spring MVC 数据校验
java·spring·mvc
沐浴露z1 小时前
Kafka Consumer 详解API,分区分配策略以及消费offset
java·kafka
weixin_404551241 小时前
openrewrite Lossless Semantic Trees (LST)
java·tree·yaml·lossless·openrewrite·lst·semantic
一 乐1 小时前
口腔健康系统|口腔医疗|基于java和小程序的口腔健康系统小程序设计与实现(源码+数据库+文档)
java·数据库·vue.js·小程序·毕设
YDS8291 小时前
苍穹外卖 —— 文件上传和菜品的CRUD
java·spring boot·后端