I do not think that any of the above answers really answer the question.
If you want to override the controllers and views in your web application, then copy them to your web application. You can even give them a different package hierarchy if you want, since the spring-security-core plugin refers to them at the URL, and yours will replace them.
This works because the controllers and views declared in the main web application take precedence over those found in the plugins.
However, if you do this in another plugin, when things get a little more complicated. See this questionnaire and answer to solve this problem.
DJOodle
source share