0

I am new Java and spring

(1) I learnt that any abstract method in the interface should provide an implementation in it is implemented, class

(2) has CrudRepository is Interface why we don't provide the implementation for its method like find, save, count, delete

sagar sss
  • 15
  • 4
  • spring magic writes the implementations on the fly – Turo May 28 '20 at 06:34
  • @Turo if you read the duplicate, you'll note that it specifically does not **write** the implementations on the fly, as it doesn't generate code but intercepts the calls. – Kayaman May 28 '20 at 06:47
  • @Kayaman Again learned something new, but admiring the magic of spring, I didn't care wether code is generated or calls intercepted :-) – Turo May 28 '20 at 07:28

0 Answers0