Avoid Unwanted Component Scanning of Spring Configuration - DZone Java
I came through interesting problem on Stack Overflow. Brett Ryan had problem that Spring Security configuration was initialized twice. When I was looking into his code I spot the problem. Let me show show the code.
He has pretty standard Spring application (not using Spring Boot). Uses more modern Java servlet Configuration based on Spring's AbstractAnnotationConfigDispatcherServletInitializer
.
Read full article from Avoid Unwanted Component Scanning of Spring Configuration - DZone Java
No comments:
Post a Comment