count * from table where spring boot code example
Example: jpa query methods count
public interface UserRepository extends CrudRepository<User, Integer> {
Long countByName(String name);
}
public interface UserRepository extends CrudRepository<User, Integer> {
Long countByName(String name);
}