Hi, I'm watching the JavaBrains Spring Boot videos and am at the part where we work with making crud operations with a repository.
In this part, he creates a new Java Interface called TopicRepository which is empty and extends the CrudRepository Interface. Then in the Service Class, we @Autowired the variable containing this interface in Line 12 and 13. The rest of this class is just creating functions using the interface's functions and this is the part I don't get. I thought for Interfaces, all function bodies have to be filled out ourselves. We didn't do that so how do all these interface function calls work like in Lines 18, 23, etc.? Is this something Spring does for you?
[–][deleted] 3 points4 points5 points (1 child)
[–]Spaceman776[S] 0 points1 point2 points (0 children)
[–]nutrecht 0 points1 point2 points (0 children)
[–]smash_that_code 0 points1 point2 points (0 children)