查看所有struts2映射到的url
2个办法
1.
| Use the Configuration Browser Plugin Add the Config Browser Plugin plugin to the lib folder or maven dependencies, and then visit: http://localhost:8080/CONTEXT/config-browser/index.action, to see the current action mappings. |
2.
RuntimeConfiguration config = Dispatcher.getInstance().getConfigurationManager().getConfiguration().getRuntimeConfiguration();
System.
out
.println(config.toString());
本文提供两种方法来查看所有Struts2映射到的URL:使用ConfigurationBrowserPlugin并访问特定URL,或者通过运行时配置获取当前操作映射。
473

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



