用户登录
用户注册

分享至

如何显示所有可用的 Struts2 动作?

  • 作者: 也有
  • 来源: 51数据库
  • 2022-10-21

问题描述

我经常被要求解决 struts.xml 配置错误.现在,在更新到更高版本的 Struts2 之后,我自己遇到了这样的不匹配.导致如下错误:

I'm quite frequently asked to solve struts.xml configuration errors. Now, after updating to a later version of Struts2 I myself run into such a mismatch. Resulting in the following error:

No result defined for action com.opensource.project.ResourceAction and result missing

嗯,我猜是可以解决的.但是,有没有一种聪明的方法来 html 打印所有可用的 URL 路径?

Well, solvable I guess. However, is there a smart way to html-print all available URL paths?

感谢这个社区的猜测

推荐答案

你可以用 配置浏览器插件.检查参考文档.该插件的功能之一是

You could do it with the config-browser plugin. Check the reference docs. One of the features of that plugin is

显示所有可访问的操作 URL

Shows all accessible action URLs

软件
前端设计
程序设计
Java相关