Notice
I wrote this article and was originally published on Qiita on 27 August 2019.
Thanks to feature of defining default method in interface in Java 8, start from Spring MVC 5, configuration by using org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter is not necessary. Just using org.springframework.web.servlet.config.annotation.WebMvcConfigurer interface and implement functions you need.