Answers for "how to use controlleradvice in spring boot"


spring security controlleradvice

public class RestAuthenticationEntryPoint implements AuthenticationEntryPoint{

    public void commence(HttpServletRequest request, HttpServletResponse response, AuthenticationException authenticationException) throws IOException, ServletException {

        response.getOutputStream().println("{ \"error\": \"" + authenticationException.getMessage() + "\" }");

Posted by: Guest on May-30-2020

Code answers related to "how to use controlleradvice in spring boot"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language