Error:java: 无效的目标发行版: 17
compiler.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>
改成
<bytecodeTargetLevel><module name="sharding-jdbc-examples" target="8" /></bytecodeTargetLevel>