0
How do I redirect Usernamenotfoundexception to a page?
if ( user == null ) {
log.info( "Email " + email + " não é um ususário cadastrado." );
throw new UsernameNotFoundException( "Email " + email + " não é um ususário cadastrado." );
}
I guess I was not very clear in my question, Spring returns an error page, with the following message:
Whitelabel Error Page
This application has no Explicit Mapping for /error, so you are Seeing this as a fallback.
Mon Jul 31 15:20:43 BRT 2017 There was an Unexpected error (type=Forbidden, status=403). Access Denied
I would like the error message to be set via an HTML page created by me.
I’m using Angularjs with Spring, how do I map this?
I answered his question about the same problem, that reply didn’t help you?
– Denis Rudnei de Souza