I need to reveal the messages of some exceptions in my spring server
When i throwing an exception inside the server i got the 500 status error message with the message - "No message available"
I used WebSecurityConfigurerAdapter to override some security stages
@Configuration
@EnableWebSecurity
public class SecurityConfig extends WebSecurityConfigurerAdapter{
@Override
protected void configure(HttpSecurity http) throws Exception{
http.httpBasic().disable();
http.cors().and().csrf().disable().authorizeRequests(); }
I Know that i can add the exception handling to the HttpSecurity but i dont know how to make it reveal the exception message to the client
Aucun commentaire:
Enregistrer un commentaire