News for hackers. Stuff that matters.
Re:Java 24 by Clamchop on Thursday March 20, 2025 @03:22PM (#43427735)
Constructor injection is still autowiring. Spring used to demand that you annotate constructor arguments with @Autowired but that changed some time ago.
Re:Java 24 by samus on Friday March 21, 2025 @02:58AM (#43432547)
No, it's the only sane technique to do dependency injection. And it still doesn't force you to do autowiring; you can also write a @Bean factory method for all components in the application if you really want.