is it posible to display all the loaded mappings and configs within Struts2 while running?
-
07-07-2021 - |
Question
I often get confused with various cases of the incorrect config for Struts2. Such as after modified packages or classes.
The bootstrap log of Struts2 shows hardly any detail on loaded mappings.
I want to list all the loaded configures at running time. How to do it ?
Solution
Use the Config Browser.
A nice example is here.
Just be sure to use the same version as your other Struts2 dependencies.
OTHER TIPS
Alternatively you could add the config-browser plugin to your development environment.I use this all the time - it makes seeing what Struts thinks is configured an absolute breeze.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow