How to disable RepositoryRestHandlerMapping and EndpointHandlerMapping?

后端 未结 4 2216
轮回少年
轮回少年 2021-02-07 02:32

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 annota

4条回答
  •  情话喂你
    2021-02-07 02:37

    Exclude RepositoryRestMvcAutoConfiguration in your main class.

    @EnableAutoConfiguration(exclude = RepositoryRestMvcAutoConfiguration.class)
    

提交回复
热议问题