Change into AbsoluteSwaggerPathProvider
indeed configuration works after commenting @Configuration and @EnableWebMvc