@EnableTransactionManagement 

public class ApplicationContextConfig { // code}


, 2.

public class ApplicationContextConfig needs to extend Spring's WebMvcConfigurerAdapter

, 3.

@EnableTransactionManagement is only for JPA configuration


, 4.

@EnableTransactionManagement restricts the classpath scan for Spring data annotations only


, 5.

You need to remove the @ComponentScan annotation

">
MCQs > IT & Programming > Spring MVC >

Which is the best explanation as to why this Java configuration fails to correctly override / add a resource handler?


Spring MVC MCQs

Which is the best explanation as to why this Java configuration fails to correctly override / add a resource handler?


Answer

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

Spring MVC Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

Spring MVC Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it