devxlogo

Selectively Expose CRUD Methods

Selectively Expose CRUD Methods

When a repository interface should not be instantiated at runtime, it should be marked with @NoRepositoryBean annotation as follows:

@NoRepositoryBeaninterface BaseRepository extends Repository {  // CRUD methods that will not be exposed}

devx-admin

Share the Post: