How to disable the default exposure of Spring Data REST repositories?

前端 未结 2 1441
抹茶落季
抹茶落季 2020-12-08 07:57

I have a project that uses spring-data-rest, and has a dependency project that only uses Spring Data. Both projects have spring data repositories and use @EnableJpaRep

2条回答
  •  天命终不由人
    2020-12-08 08:14

    Currently there's no global switch for what you're looking for. I've filed this ticket for you for inclusion in the next major release.

    Not sure if it is an option for you but package private repository interfaces are not currently exposed unless explicitly annotated. If you can make all those library repositories package protected that might be favorable over the explicit annotation.

提交回复
热议问题