Idea中java版本默认为5改成8设置

idea maven工程的module的Language Level总是自动变到5,如下图所示:

Idea中java版本默认为5改成8设置_第1张图片

在pom.xml文件中添加如下配置即可:


    
        
            org.apache.maven.plugins
            maven-compiler-plugin
            
                8
                8
            
        
    

 

你可能感兴趣的:(idea,spring,boot)