@GetMapping(value = "/oups")
    public String triggerException() {
        throw new RuntimeException("Expected: controller used to showcase what " +
            "happens when an exception is thrown");
    }
Controller used to showcase what happens when an exception is thrown

@author Michael Isvy
        <p/>
        Also see how the bean of type 'SimpleMappingExceptionResolver' has been declared inside
        /WEB-INF/mvc-core-config.xml
src/main/java/org/springframework/samples/petclinic/web/CrashController.java