Regarding the error report after modifying the web.xml version

When building a springMVC project, sometimes because the web.xml version is too low, if you want to modify the web.xml version to be after 3.0, the project will always have a red cross, but there is no problem running the project.
Error message: Cannot change version of project facet Dynamic Web Module to 3.0.
Although it has no effect on the operation of the project, it is for patients with obsessive-compulsive disorder like me.
It’s killing me! ! !
So after consulting various materials, the problem was finally solved. It is very simple, just modify the configuration file in the project.
Configuration file path:工作区路径\项目名称\.settings\org.eclipse.wst.common.project.facet.core.xml

<?xml version="1.0" encoding="UTF-8"?> 
<faceted-project> 
<fixed facet="wst.jsdt.web" /> 
<installed facet="java" version="1.8" /> 
<!--只需要将jst.web的版本改成你web.xml的版本即可 -->
<installed facet="jst.web" version="3.0" /> 
<installed facet="wst.jsdt.web" version="1.0" /> 
</faceted-project>

Guess you like

Origin blog.csdn.net/qq_42068856/article/details/88030895