Skip to content

@RestControllerAdvice @ExceptionHandler Inconsistent behavior with @RestControllerEndpoint #30899

Closed
@christophejan

Description

@christophejan

Currently, using RestControllerAdvice ExceptionHandler with RestControllerEndpoint give the following result :

  1. Webflux using same management port : ExceptionHandler take in account
  2. Webflux using different management port : ExceptionHandler take in account
  3. Mvc using same management port : ExceptionHandler take in account
  4. Mvc using different management port : ExceptionHandler ignored

See tests in attached demo-exception-handler-rest-controller-endpoint.zip

It seems inconsistent to me.

spring-boot version : 2.6.7

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: supersededAn issue that has been superseded by another

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions