spring handler code example Example: spring controller method to run before every call @ModelAttribute("foo") public Foo foo() { return new Foo(); }