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>
相关推荐
Hungry_Shark1 分钟前
IDEA版本控制管理之使用Gitee
java·gitee·intellij-idea
赛姐在努力.2 分钟前
《IDEA 突然“三无”?三秒找回消失的绿色启动键、主菜单和项目树!》
java·intellij-idea
猎板PCB黄浩11 分钟前
从废料到碳减排:猎板 PCB 埋容埋阻的绿色制造革命,如何实现环保与性能双赢
java·服务器·制造
ZzzK,11 分钟前
JAVA虚拟机(JVM)
java·linux·jvm
西红柿维生素17 分钟前
JVM相关总结
java·jvm·算法
coderxiaohan1 小时前
【C++】类和对象1
java·开发语言·c++
ChillJavaGuy2 小时前
常见限流算法详解与对比
java·算法·限流算法
寻星探路2 小时前
数据库造神计划第六天---增删改查(CRUD)(2)
java·大数据·数据库
毕设源码-朱学姐2 小时前
【开题答辩全过程】以 4S店汽车维修保养管理系统为例,包含答辩的问题和答案
java·spring boot·汽车
盖世英雄酱581363 小时前
Read timed out问题 排查
java·数据库·后端