关于在struts2中Wrong method

![![图片说明](https://img-ask.csdn.net/upload/201805/19/1526742589_57710.png)图片说明](https://img-ask.csdn.net/upload/201805/19/1526742580_56792.png)图片说明
访问hello/HelloAction后出现这个怎么解决
Wrong method was defined as an action method: index

如果项目里面有JAR包 struts2-rest-plugin-2.5.XXX
把这个包删除重新部署。

https://blog.csdn.net/yzk2356911358/article/details/78568028

Struts官方例子
package org.apache.struts2.rest.example;

public class OrdersController implements ModelDriven {

private OrderManager orderManager;
private String id;
private Order model;

// Handles /orders/{id} GET requests
public HttpHeaders show() {
    model = orderManager.findOrder(id);
    return new DefaultHttpHeaders("show")
        .withETag(model.getUniqueStamp())
        .lastModified(model.getLastModified());
}

// Handles /orders/{id} PUT requests
public String update() {
    orderManager.updateOrder(model);
    return "update";
}

// getters and setters

}
官方解释
Where’s ActionSupport? Normally, you extend ActionSupport when writing Struts 2 actions. In these case, our controller doesn’t do that. Why, you ask? ActionSupport provides a bunch of important functionality to our actions, including support for i18n and validation. All of this functionality, in the RESTful case, is provided by the default interceptor stack defined in the REST plugin’s struts-plugin.xml file. Unless you willfully break your controller’s membership in the rest-default package in which that stack is defined, then you’ll get all that functionality you are used to inheriting from ActionSupport.

所以controller或action不用再继承ActionSupport了!问题解决!