Skip to content

Instantly share code, notes, and snippets.

@ryanzhou7
Created July 9, 2018 23:31
Show Gist options
  • Save ryanzhou7/3217efe4f4332f4fa548287e515857f4 to your computer and use it in GitHub Desktop.
Save ryanzhou7/3217efe4f4332f4fa548287e515857f4 to your computer and use it in GitHub Desktop.
package hello;
import org.springframework.data.repository.CrudRepository;
import hello.User;
// This will be AUTO IMPLEMENTED by Spring into a Bean called userRepository
// CRUD refers Create, Read, Update, Delete
public interface UserRepository extends CrudRepository<User, Long> {
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment