Report question

Question: How to get redirected to a method at login/logout before target-url called in Spring Security?