Spring Data JPA supports counting entities using specifications. But does it have any way to count entities using method name resolving? Let\'s say I want a method cou
cou
@Autowired private UserRepository userRepository; @RequestMapping("/user/count") private Long getNumberOfUsers(){ return userRepository.count(); }