educative.io

Appear json response

hi, i try to catch exception when i write something wrong in the path so how i catch this exception and appear json response, i tried and add one new method inside the class but didnt catch it?
thanks


Course: The Complete Guide to Spring 5 and Spring Boot 2 - Learn Interactively
Lesson: https://www.educative.io/courses/guide-spring-5-spring-boot-2/YQz17Bo3mAp