To add functions to a system, use ajax to access the methods in Action in js. Use the annotation and add @ParentPackage("root") to the corresponding Action. When accessing, the page will not report an error, and the background will not appear. Data, breakpoint discovery does not use the corresponding query method. Remove the @ParentPackage("root") annotation in the Action. When accessing, the frontend will report url404, but the background query method will be used to find the database data.
I would like to ask all the masters, have you ever encountered such a situation? Struts2 seems to require root. Please give me a solution. I have been working on it for a long time. Thank you in advance!
習慣沉默2017-05-17 10:02:43
I found the problem, it’s a permissions issue. I didn’t figure out the permissions part before, I was stupid
伊谢尔伦2017-05-17 10:02:43
Never used @ParentPackage("root"). . . The front-end 404 and the back-end can still pass, but the configuration of the action return page is wrong. Paste the struts.xml.