Regarding idea, in the process of integrating Struts2 and Spring, the id name of the bean is incorrectly configured in the class attribute of the action.

Regarding Idea, in the process of integrating Struts2 and Spring, the id name of the bean is incorrectly configured in the class attribute of the action.

Solution
(1) The struts2-spring-plugin package is not imported, and you can import it manually
(2) The spring configuration file applicationContext.xml configured by yourself does not match the framework

first step

Insert picture description here

Second step

Insert picture description here

Guess you like

Origin blog.csdn.net/qq_41827511/article/details/106032575