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

apache - 504 Gateway Time-out The server didn't respond in time. How to fix it? -

c# - .net WebSocket: CloseOutputAsync vs CloseAsync -

c++ - How to properly scale qgroupbox title with stylesheet for high resolution display? -