perwendel / spark

A simple expressive web framework for java. Spark has a kotlin DSL https://github.com/perwendel/spark-kotlin
Apache License 2.0
9.63k stars 1.56k forks source link

Code sample:Cannot resolve method 'afterAfter' in 'FilterExample' #1198

Closed landou1107 closed 3 years ago

landou1107 commented 3 years ago

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"));

perwendel commented 3 years ago

I tried, it works. You just need to import the method.