Good day.
I got a spring mvc application and 2 controllers inside.
First controller (PublicController) can process requests from all users, Second (PrivateController) can only
I don't know why, when I use your way, it worked. But the interceptor executed twice. And I found another way to do this.
@Bean
public MappedInterceptor interceptor() {
return new MappedInterceptor(null, new String[]{"/","/**/*.js", "/**/*.html", "/**/*.css"}, new LogInterceptor());
}