DI in Spring
hey guys. i have an interface for my service, and the actual implementation. in the controller i inject the interface. but i was told that theres no need to inject (and to have) an interface, because spring will inject the implementation. should i ditch the interface? thanks
2 Replies
⌛
This post has been reserved for your question.
Hey @bambyzas! Please useTIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here./close
or theClose Post
button above when your problem is solved. Please remember to follow the help guidelines. This post will be automatically closed after 300 minutes of inactivity.
Post Closed
This post has been closed by <@611623200756989972>.