In order to do this, we can edit the spring-security.xml file present in the backend at location:
In this file, you can do changes as shown in the below screenshot. For example, in this image /asmin.html page is accessible by only the user having role= ‘ROLE_ADMIN’. Similarly, all the HTML pages we can restrict or permit for different users based on their roles.
The sample spring-security.xml file is attached for reference.
spring-security.zip (3.1 KB)
Helical Insight Team