在SpringBoot2.0以上已经将WebMvcConfigurerAdapter摒弃了。
替换使用WebMvcConfigurer接口或者WebMvcConfigurationSupport继承类。
但在使用时发现,若是继承WebMvcConfigurationSupport就会出现无法访问到静态资源的问题。
而采实现WebMvcConfigurer接口的方式则不会。
o.s.web.servlet.PageNotFound : No mapping for GET /asserts/css/bootstrap.min.css