Use @RequiredArgsConstructor from lombok with final fields for constructor injection in a cleaner way.
Stop using field injection (@ Autowired on private fields). It makes your code impossible to test without reflection magic. Constructor injection is the only valid way to write Spring components. If your constructor has 10 arguments, that’s a design flaw, not a framework…
5
13
126
55
7K
0
0
1
0
42
spring boot +ecosystem has everything to build a production ready application.
0
0
0
0
16
United States Trends
- 1. Lakers 44.3K posts
- 2. Spurs 36.6K posts
- 3. Doug Dimmadome 9,145 posts
- 4. Godzilla 20.2K posts
- 5. Michigan 122K posts
- 6. Marcus Smart 2,162 posts
- 7. Wemby 5,388 posts
- 8. Sherrone Moore 63.1K posts
- 9. #Survivor49 5,169 posts
- 10. Dolly Parton 2,404 posts
- 11. Erika 177K posts
- 12. #AEWDynamite 26.8K posts
- 13. Jim Ward 9,487 posts
- 14. #PorVida 1,504 posts
- 15. Stephon Castle 3,691 posts
- 16. PETA 24.8K posts
- 17. Gabe Vincent 1,155 posts
- 18. Gainax 3,800 posts
- 19. Candace 219K posts
- 20. Captain Qwark 6,423 posts
Loading...
Something went wrong.
Something went wrong.