Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save EudesSilva/5183347 to your computer and use it in GitHub Desktop.
Save EudesSilva/5183347 to your computer and use it in GitHub Desktop.
Direciona o controle de sessão para o Spring.
<!-- Controla a sessao -->
<listener>
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
</listener>
<listener>
<listener-class>org.springframework.web.context.request.RequestContextListener</listener-class>
</listener>
<filter>
<filter-name>springSecurityFilterChain</filter-name>
<filter-class>org.springframework.web.filter.DelegatingFilterProxy</filter-class>
</filter>
<filter-mapping>
<filter-name>springSecurityFilterChain</filter-name>
<url-pattern>/*</url-pattern>
<dispatcher>FORWARD</dispatcher>
<dispatcher>REQUEST</dispatcher>
</filter-mapping>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment