Dependency injection
Handing an object the things it needs instead of letting it create them. The service asks for a store in its constructor and Spring passes it in.
Handing an object the things it needs instead of letting it create them. The service asks for a store in its constructor and Spring passes it in.