Two repos for the same entity, one exported and one not
问题 Using Sring Data JPA, Spring Data REST 2.4.2, Spring Security and Spring Boot 1.3.1. I have an Account entity that I want to expose over REST for admin purposes: @PreAuthorize("hasRole('ROLE_ADMIN')") //exclusive admin access public interface AccountRepository extends JpaRepository<Account, Long> {} This works as expected and I can access the REST interface with a proper admin role. Another requirement I have is to allow non-admin users to register and authenticate over HTTP. For that I've