How to disable the default exposure of Spring Data REST repositories?
Looping back here as I was looking for this specific setting. It looks like this is now implemented. In this case, you would want to set spring.data.rest.detection-strategy=annotated to avoid default exposure. All application.properties options: # Exposes all public repository interfaces but considers @(Repository)RestResource\u2019s `exported flag. spring.data.rest.detection-strategy=default # Exposes all repositories independently of type visibility and … Read more