用内置jetty运行项目struts2提示找不到Action

之前struts2配置没错就是提示找不到Action,今天用maven运行jetty发现没问题,然后看到别人用多了一个

WebContext.setClassLoader(Thread.currentThread().getContextClassLoader());

加了之后果然可以了。。。

原文地址:https://www.cnblogs.com/adaikiss/p/1873167.html