org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter in org.springframework.web.servlet.config.annotation has been deprecated
-
[Spring] java: org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter in org.springframework.web.servlet.config.annotation has been deprecated 해결웹 개발/에러 해결 2018. 12. 29. 21:31
Warning:(8, 57) java: org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter in org.springframework.web.servlet.config.annotation has been deprecated 스프링부트(version 2.0.4)로 개발중인데 갑자기 위의 에러가 나왔다. 스프링부트 2는 스프링 프레임워크 5를 사용한다. 스프링 5에서는 WebMvcConfigurerAdapter 대신 WebMvcConfigurer를 사용한다. 자바 8에서(스프링부트2는 jdk8부터 사용가능하다) WebMvcConfigurer 인터페이스를 소개하고 있다. WebMvcConfigurer 인터페이스가 WebMvcConf..