The repository provided by JPA allow your spring boot application to interact with postgres.
Here’s an example of it:
interface TaskRepository extends JpaRepository<Task, Long> {}there’s also the CrudRepository too if you prefer that. Gives all the CRUD related methods (but the JpaRepository also gives that based on using it):
interface TaskRepository extends JpaRepository<Task, Long> {}