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>
相关推荐
进阶的猿猴1 天前
easyExcel实现单元格合并
java·excel
小许学java1 天前
MySQL-触发器
java·数据库·mysql·存储过程·触发器
JEECG低代码平台1 天前
【2025/11】GitHub本月热度排名前十的开源Java项目
java·开源·github
百***86051 天前
Spring BOOT 启动参数
java·spring boot·后端
跟着珅聪学java1 天前
Spring Boot 中整合 MySQL 并打印 SQL 日志
java·spring boot
ᐇ9591 天前
Java集合框架实战:HashMap与HashSet的妙用
java·开发语言
阿智智1 天前
用Maven的quickstart archetype创建项目并结合JUnit5单元测试
java·单元测试·maven·junit5
乂爻yiyao1 天前
设计模式思想——从单例模式说起
java·单例模式·设计模式
q***11651 天前
SpringBoot创建动态定时任务的几种方式
java·spring boot·spring
by__csdn1 天前
微服务与单体那些事儿
java·后端·微服务·云原生·架构