Under the IDEA solve struts.xml extends = "struts-default" reported the problem of red

 

phenomenon

When you configure struts.xml in the IDEA extends = "struts-default" newspaper red, no property option when prompted to pre-configure the interceptor, also is booming.

Struts.xml configuration itself is not wrong.

 

 

 

Solution

Ctrl+Shift+Alt+S调出Project Structure

 

 

 

 

the reason

When you create a project, we chose after importing struts jar package, IDEA can not find the file struts-default.xml jar package.

We import the struts jar package, IDEA does not scan which there are no struts-default.xml file for IDEA is struts-default.xml is missing, report it red, there is no corresponding code hints.

 

Guess you like

Origin www.cnblogs.com/chy18883701161/p/12106605.html