springboot 1.5.10에서 springboot 2.0.0으로 올리면서 한 삽질.
1. SpringBootServletInitializer 패키지 이름이 바뀜
import org.springframework.boot.web.support.SpringBootServletInitializer;
->
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
2. WebMvcConfigurerAdapter deprecated
public class CustomWebMvcConfig extends WebMvcConfigurerAdapter
->
public class CustomWebMvcConfig implements WebMvcConfigurer
3. JPA method findOne -> findById or getOne
ID를 가지고 Domain을 가져오는 method로 findOne을 썻다면
getOne 또는 findById로 변경.
주의할점 : findById는 return값을 Optional<T>로 리턴.