If you get the following error in Struts2:java.lang.IllegalAccessException: Class com.opensymphony.xwork2.DefaultActionInvocation can not access a member of class com.xxxxxxxxAction with modifiers "public"
it's likely because your class com.xxxxxxxxAction is not public. You just need to add a public keyword in front of the class definition
public class com.xxxxxxxxAction {
}
can not access a member of with modifiers "public"
最新推荐文章于 2025-05-10 01:04:25 发布
本文解析了一个常见的Struts2框架错误:无法访问带有public修饰符的成员。此问题通常发生在非公共类试图被框架实例化时。解决办法是在类定义前添加public关键字。

6639

被折叠的 条评论
为什么被折叠?



