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>
相关推荐
Knight_AL1 分钟前
Mono 使用指南:响应式编程的核心概念与实践
java·mono
这里是彪彪5 分钟前
Java中的volatile关键字的作用
java·开发语言
独自破碎E15 分钟前
【归并】数组中的逆序对
java·数据结构·算法
范什么特西17 分钟前
打开idea项目
java
黎雁·泠崖18 分钟前
Java入门从零起步:CMD操作+JDK环境搭建+第一个Java程序
java·开发语言
我的golang之路果然有问题19 分钟前
python中 unicorn 热重启问题和 debug 的 json
java·服务器·前端·python·json
码农小卡拉22 分钟前
深度解析 Spring Boot 启动运行机制
java·spring boot·后端
weixin_4481199422 分钟前
如何装docker
java·云原生·eureka
钦拆大仁23 分钟前
如何手搓一个Spring Security
java·后端·spring
yaoxin52112325 分钟前
288. Java Stream API - 创建随机数的 Stream
java·开发语言