0
我想成功登錄後設置瀏覽器的cookie值。 我能夠使用以下代碼檢測成功登錄事件。如何在Spring Boot應用程序的ApplicationListener中獲取httprequest和httpresponse?
@Component
@Slf4j
public class LoginEventListener implements ApplicationListener<InteractiveAuthenticationSuccessEvent> {
@Override
public void onApplicationEvent(InteractiveAuthenticationSuccessEvent event) {
log.info("hahaha: " + event.toString());
}
}