December 04 2017, 01:32

for #hybris only: Published the second part of the groovy scripts for hybris. Introducing four scripts.

The first allows changing the logLevel for any class in the system on the fly. Hybris, since some version, stopped doing this for some unclear reason, and I am correcting the situation.

The second allows you to delve into the storefront context for beans there and, for example, print their list. You can then modify them or call their methods.

The third script demonstrates that you can run methods from controllers. Sometimes this is useful for debugging.

The fourth script exports all the URLs declared by RequestMapping for controllers. This is useful to understand what mappings are established in the system, for instance, for a superficial audit and understanding of what is exposed on the web.

Leave a comment