title: Spring 3.5 how to add HttpSessionEventPublisher to my boot configuration
body: <p>I want to listen to session life cycle events. I read about adding </p>
  
  <pre><code>&lt;listener&gt;
     &lt;listener-class&gt;
       org.springframework.security.web.session.HttpSessionEventPublisher
     &lt;/listener-class&gt;
  &lt;/listener&gt;
  </code></pre>
  
  <p>to web.xml. But I don't have it. I am using class that extends SpringBootServletInitializer. How I can add this listener?</p>