spring - How to disable RepositoryRestHandlerMapping and EndpointHandlerMapping? -


I currently build a application with a spring boot, hibernate and a difference interface using SpringHitos I am doing My data model is defined as the beans with the @enti annotation and I'm using the Spring feature to set up a hibernate repository ( PagingAndSortingRepository Creating an expanding interface). My application is fully annotated-i.e., I do not have any web.xml , but spring annotations such as @configuration , @bin Configure everything with etc., and start the application with my main method using SpringApplication.run (MyApp.class, args);

It works fine, but with this approach, a repository raster handler mapping and endpoint handler mapping are created with one of these resources Groups that I do not need and neither do I need I apply my own controllers because they need to do more than standard logic.

How can I stop this default behavior and disable these mappings?

  @EnableAutoConfiguration (exclude = RepositoryRestMvcAutoConfiguration.class)  

div>

Comments

Popular posts from this blog

HTML/CSS - Automatically set height width from background image? -

php - Mysql Show Process - Sleep Commands and what to do -

c - What is the address of buf (the local variable in the main function)? -