I trying to configure spring security 6 in my springboot application.
I want to load allowed roles for module in a map.
Map<module id, string[] allowed roles>
. Actually I want to use that map in security configs allowing specific user roles to modules.
I have module url like api/v1/module1
. How do I initialize that map before my application creates Security Config bean?