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