java - Spring 3.5 how to add HttpSessionEventPublisher to my boot configuration -


I want to hear events in session life cycle. I

  & lt; Listener & gt; Have read about linking & lt; Audience category & gt; Org.springframework.security.web.session.HttpSessionEventPublisher & lt; / Audience & gt; & Lt; / Listener & gt;   

to web.xml but I do not have this. I'm using the SpringBootServletInitializer extension class. How do I add this listener? You can use ServletListenerRegistrationBean > @ Baynes Public Service Listener Registration Bank & lt; HTPASIONAVENT PUBLISHER & gt; HttpSessionEventPublisher () {New Service Listener Resistance Bean & lt; HTPSessionEventsProjector & gt; (New HTTP installation event publisher ()); }

Comments

Popular posts from this blog

ios - Adding an SKSpriteNode to SKScene from a child SKSpriteNode -

Matlab transpose a table vector -

c# - Textbox not clickable but editable -