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

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

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

相关文章: