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
JavaBot
JavaBot11mo ago
This post has been reserved for your question.
Hey @bambyzas! Please use /close or the Close 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.
TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here.
JavaBot
JavaBot11mo ago
Post Closed
This post has been closed by <@611623200756989972>.
Want results from more Discord servers?
Add your server