How to disable RepositoryRestHandlerMapping and EndpointHandlerMapping?
问题 I am currently building an application with a REST interface, using Spring Boot, Hibernate and Spring-HATEOAS. My data model is defined as beans with @Entity annotation and I am using Spring's feature to automatically set up a Hibernate repository (Creating an interface extending PagingAndSortingRepository ). My application is completely annotation-driven, i.e., I have no web.xml but configure everything with the Spring annotations like @Configuration , @Bean etc., and start the application