@EnableTransactionManagement
public class ApplicationContextConfig { // code}
public class ApplicationContextConfig needs to extend Spring's WebMvcConfigurerAdapter
@EnableTransactionManagement is only for JPA configuration
@EnableTransactionManagement restricts the classpath scan for Spring data annotations only
You need to remove the @ComponentScan annotation
Which is the best explanation as to why this Java configuration fails to correctly override / add a resource handler?
Correct Answer:
public class ApplicationContextConfig needs to extend Spring's WebMvcConfigurerAdapter
Explanation:
Note: This Question is unanswered, help us to find answer for this one
More Spring MVC MCQ Questions