Issue
for reference check this interface : org.springframework.web.servlet.config.annotation.WebMvcConfigurer
This interface has all the default method with empty body.
why they just not declared interface instead of empty body in interface??
Solution
This interface has default callback methods which can be implemented to customize the default configuration.Previously an abstract class WebMvcConfigurerAdapter
implemented WebMvcConfigurer
but now WebMvcConfigurerAdapter
class is deprecated and the WebMvcConfigurer
interface itself has default methods.
Answered By - Arghya Sadhu
Answer Checked By - Timothy Miller (JavaFixing Admin)