Code sample:Cannot resolve method 'afterAfter' in 'FilterExample'
landou1107 opened this issue · comments
landou1107 commented
Code sample:
Error
afterAfter("/hello", (request, response) -> response.header("finally", "executed even if exception is throw"));
afterAfter((request, response) -> response.header("finally", "executed after any route even if exception is throw"));
Right
after("/hello", (request, response) -> response.header("finally", "executed even if exception is throw"));
after((request, response) -> response.header("finally", "executed after any route even if exception is throw"));
Per Wendel commented
I tried, it works. You just need to import the method.