package Ġorg . d ri pto . spring y . core . config Ċ Ċ import Ġcom . fasterxml . jackson . databind . ObjectMapper Ċ import Ġcom . github . java faker . F aker Ċ import Ġorg . d ri pto . spring y . web . controller . Employee RestController Ċ import Ġorg . springframework . beans . factory . config . Bean Post Processor Ċ import Ġorg . springframework . context . annotation . Bean Ċ import Ġorg . springframework . context . annotation . Configuration Ċ import Ġorg . springframework . core . annotation . Order Ċ import Ġorg . springframework . web . server . Web ExceptionHandler Ċ import Ġorg . z al ando . problem . Problem Module Ċ import Ġorg . z al ando . problem . spring . web flux . ad vice . Problem ExceptionHandler Ċ import Ġorg . z al ando . problem . spring . web flux . ad vice . Problem Handling Ċ import Ġorg . z al ando . problem . vi olations . Constraint Violation Problem Module ĊĊ Ċ @ Configuration Ċ class ĠCore Config Ġ{ ĊĠĠĠ Ġ@ Bean ĊĠĠĠ Ġfun Ġfaker () Ġ= ĠFaker () ĊĊĠĠĠ Ġ@ Bean ĊĠĠĠ Ġ@ Order (- 2 ) Ġ// ĠThe Ġhandler Ġmust Ġhave Ġprecedence Ġover ĠWeb Flux ResponseStatus ExceptionHandler Ġand ĠSpring ĠBoot 's ĊĠĠĠ Ġ// ĠError Web ExceptionHandler ĊĠĠĠ Ġfun Ġproblem ExceptionHandler ( mapper : ĠObjectMapper , Ġproblem Handling : ĠProblem Handling ): ĠWeb ExceptionHandler Ġ= ĊĠĠĠĠĠĠĠĠĠĠĠ ĠProblem ExceptionHandler ( mapper , Ġproblem Handling ) Ċ } Ċ