第一步:添加maven pom.xml配置 第二步:配置Compiler 第三步:按住快捷键Shift option command + /点击Registry调出这个页面勾选上这个就ok了