package hello.config;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.data.rest.core.config.RepositoryRestConfiguration;
import org.springframework.data.rest.webmvc.config.RepositoryRestConfigurer;
import org.springframework.data.rest.webmvc.config.RepositoryRestConfigurerAdapter;
import org.springframework.hateoas.RelProvider;
import org.springframework.hateoas.core.EvoInflectorRelProvider;

@Configuration
public class Hateoas {

	private final static Logger log = LoggerFactory.getLogger(Hateoas.class);

	@Bean
	public RelProvider relProvider() {
		log.info("Using EvoInflectorRelProvider for HATEOAS relations");

		return new EvoInflectorRelProvider();
	}

	@Bean
	public RepositoryRestConfigurer repositoryRestConfigurer() {

		return new RepositoryRestConfigurerAdapter() {

			@Override
			public void configureRepositoryRestConfiguration(RepositoryRestConfiguration config) {
				config.setBasePath("/api");
			}
		};
	}
}

@@ -345,92 +345,8 @@
 er;%0A
-import org.springframework.data.rest.webmvc.config.RepositoryRestConfigurerAdapter;%0A
 impo
@@ -836,15 +836,8 @@
 urer
-Adapter
 () %7B

Fix deprecated RepositoryRestConfigurerAdapter in the configs.