vendredi 20 février 2015

exclude pattern with spring interceptor

I am using a spring interceptor and I want to exclude only the first page in my application. The first page serves to authenticate then redirects towards other pages.


so I wrote in my config file



<mvc:interceptors>
<mvc:interceptor>
<mvc:exclude-mapping path="/" />
<bean class="com.app.interceptor.AuthentificationInterceptor">
</bean>
</mvc:interceptor>
</mvc:interceptors>


But I got an error in the deployement. Where did I go wrong ?


Aucun commentaire:

Enregistrer un commentaire