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.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 RepositoryRestConfigurer() {

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

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");
			}
		};
	}
}

--- 
+++ 
@@ -6,7 +6,6 @@
 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;
 
@@ -25,7 +24,7 @@
 	@Bean
 	public RepositoryRestConfigurer repositoryRestConfigurer() {
 
-		return new RepositoryRestConfigurerAdapter() {
+		return new RepositoryRestConfigurer() {
 
 			@Override
 			public void configureRepositoryRestConfiguration(RepositoryRestConfiguration config) {
Fix deprecated RepositoryRestConfigurerAdapter in the configs.
