I'm learning about Spring MVC
and Spring Security
.
How do I redirect the page when the next line returns false
within a @Controller
?
@PostAuthorize(" hasRole('page')")
If the above line returns true
there is no problem and the page displays correctly.
If the above line returns false
page is displayed! But all variables get beech, Ex: it displays a table only with the header and without any line.
I ask: how can I redirect to another page instead of displaying the empty page?