
Spring Security
By :

The most common functionality used in the Thymeleaf Spring Security tag library is to conditionally render portions of the page based on authorization rules. This is done with the <sec:authorize*>
tag that functions similarly to the <if>
tag in the core JSTL library, in that the tag’s body will render depending on the conditions provided in the tag attributes. We have already seen a very brief demonstration of how the Spring Security tag library can be used to restrict the viewing of content if the user is not logged in.
The Spring Security tag library provides functionality to render content based on the existing URL authorization rules that are already defined in the security configuration file. This is done via the use of the authorizeHttpRequests()
method.
If there are multiple HTTP elements, the authorizeHttpRequests()
method uses the...