Я не могу внедрить bean-компонент Spring в мой пользовательский обработчик успеха:
@Component
public class CustomSavedRequestAwareAuthenticationSuccessHandler extends SavedRequestAwareAuthenticationSuccessHandler {
@Resource
private SessionController sessionController;
@Override
public void onAuthenticationSuccess(HttpServletRequest request, HttpServletResponse response, Authentication authentication) throws ServletException, IOException {
super.onAuthenticationSuccess(request, response, authentication);
sessionController.setUtenteOnline();
}
, который возвращает исключение нулевого указателя на sessionController.Заранее спасибо