cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

How can I disable or restrict OOTB url mappings?

Former Member
0 Likes
464

I want to disable/restrict some OOTB urls since we are not using it in the project. This means that whenever a user tries to use a specific url (example: https://localhost:9002/checkout/multi/summary/placeOrder) the controller will not be triggered and user will not be able to see the OOTB page for this url.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Likes

Hi Gersam,

You could use Spring Security, especially .antMatchers("/yourPattern").denyAll().

Here is article about this on help, additionally there is plenty of resources on the Internet.

Hope this helps.
Best Regards,

Former Member
0 Likes

If controllers are in different packages and you don't need those in future, just delete them.
If controller are in different packages and you do need those in future, change your JSPs and remove form actions that link to those controllers

If controller are in same package, you can configure your <context:component-scan> property in extension-spring.xml file.