tag:blogger.com,1999:blog-9067988672746980.post1301856264751036583..comments2023-11-02T08:59:28.697-07:00Comments on Spring Tutorials: Spring MVC InterceptorAnonymoushttp://www.blogger.com/profile/05365064495300552543noreply@blogger.comBlogger1125tag:blogger.com,1999:blog-9067988672746980.post-63635050360860442362015-04-04T23:57:35.370-07:002015-04-04T23:57:35.370-07:00Nice Article. can also be used in java configura...Nice Article. can also be used in java configuration with<br />@Configuration. Find the code snippet.<br /><br />@Configuration <br />public class AppConfig extends WebMvcConfigurerAdapter { <br /> @Override<br /> public void addInterceptors(InterceptorRegistry registry) {<br /> registry.addInterceptor(new LoggingInterceptor());<br /> registry.addInterceptor(new TransactionInterceptor()).addPathPatterns("/person/save/*");<br /> }<br />} <br /><br />Find the <a href="http://www.concretepage.com/spring/spring-mvc/spring-handlerinterceptor-annotation-example-webmvcconfigureradapter" rel="nofollow">detail.</a>Anonymoushttps://www.blogger.com/profile/13276679136711706671noreply@blogger.com