Spring Data Repositories
How
Using annotated entity, we create an interface:
This CrudRepository interface provides several CRUD operations, and Spring will provide the implementation for us to use.
Initialiasing with data
Use of
CommandLineRunner
which has a runnableSpring will find any of these impementations and run them
Can be used as a main method
Can inject repository created, and use crud methods to add data or get data etc
Last updated
Was this helpful?