Cannot change version of project facet Dynamic web module to 3.0

Cannot change version of project facet Dynamic web module to 3.0_第1张图片
1.修改 web.xml
Cannot change version of project facet Dynamic web module to 3.0_第2张图片
修改为:




2.Window>Show View>Navigator,在Navigator下打开项目的.settings目录下org.eclipse.jdt.core.prefs,修改为:

eclipse.preferences.version=1
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8
org.eclipse.jdt.core.compiler.compliance=1.8
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning
org.eclipse.jdt.core.compiler.source=1.8

3.打开org.eclipse.wst.common.component,修改为:


    
        
        
        
        
        
        
        
        
    

4.打开org.eclipse.wst.common.project.facet.core.xml,修改为:



  
  
  
  

保存后,打开project facets,则问题消失。 update project

你可能感兴趣的:(web)