无效的目标发行版: 17 修改了project module 中的source和dependencies 修改了运行时的编译 edit run configuration 修改setting 以上均不行 则考虑是否是由maven运行造成的 我是因为maven 中没有修改maven执行的Java环境