The phenomenon of
strong> p>
extends= “struts-default” when configuring struts.xml in IDEA, and also goes red when configuring interceptors with properties that don’t have pre-selection hints.
struts.xml itself is not configured incorrectly.
solution
Ctrl+Shift+Alt+S call out Project Structure
why strong> p>
when we created the project, we selected the jar package that later imported struts, IDEA could not find the struts-default.xml file in the jar package. After we import the struts jar package, IDEA will not scan whether there is a struts-default.xml file in it. For IDEA, struts-default.xml is missing, so there is no corresponding code prompt for red.
This kind of problem often occurs when you manually add jar packages in struts. The solution is the same as above: manually add XML files.
Read More:
- Under idea2020.3 struts.xml The solution of “red report” based on extensions = “struts default” in
- The solution of package main extensions undefined package struts default
- Struts2 is cracked, a serious loophole, a perfect solution
- In Struts2, the value read from the foreground JSP page is null
- Struts 2 encapsulates form data into list and map sets
- Idea2020.2 encountered pom.xml The problem of file error report in Maven plug-in tomcat7
- The solution of notes floating red error in IntelliJ idea
- [Java] spring transaction control configuration error, application- persstence.xml Transaction manager report red in file
- Idea | change the default configuration of idea to open a new project
- Solve the problem of red wavy line in pychar when importing module written by oneself
- Brief introduction of idea Lombok and solutions for reporting red and wrong
- IntelliJ idea class is normal, but error is marked in red and cannot be found
- The error of GetSet method encapsulated by idea2020 is red
- Error in pom.xml dependency version number in idea
- Error report of. XML header file constraint in idea
- Solution to the problem of Chinese garbled in gradle console in idea
- Application of IntelliJ idea in Maven project pom.xml Add dependency
- IntelliJ idea sets the default working directory
- Solve the problem of Chinese garbled code of actibpm plug-in in idea
- Solve the problem that data cannot be input in idea console