{"repo":"arsy786/springboot-best-practices","free":true,"listed":false,"github":"https://github.com/arsy786/springboot-best-practices","clone":"git clone https://github.com/arsy786/springboot-best-practices.git","description":"This repo serves as a guide for Spring Boot best practices!","language":"Java","stars":178,"topics":["2022","guide","java","spring-boot"],"license":null,"category":"api-integrations-sdks","readme_excerpt":"Spring Boot Best practices ✅ Part of the Spring Boot Roadmap — a curated masterclass covering everything from Java basics to advanced Spring Boot projects and practices. It is one of several interconnected repositories making up the broader Spring Boot Roadmap, which provides a complete learning journey. --- This tutorial is derived from: Spring Boot Best Practices For Developers 👨‍💻 (Youtube/JavaTechie) and Spring Boot Best Practices for Developers (Medium/RaviYasas) This is a guide for best practices and includes tips which you can use to improve your Spring Boot application and make it more efficient. Table of Contents Getting Started 0. Notable Mentions 1. Proper packaging style 2. Use Spring Boot starters 3. Use proper versions of the dependencies 4. Use Lombok 5. Use Controllers only for routing 6. Use Services for business logic 7. Use constructor injection with Lombok 8. Use Slf4j logging 9. Use meaningful words for classes, methods, variables and other attributes 10. Bean Validation 11. Custom Exception Handling 12. Use custom response object 13. Use design patterns 14. Use yml instead of properties 15. Encrypt or externalize sensitive info 16. Write E2E Unit Test cases with coverage 17. Avoid NPE by using Optional 18. Use best practices for the collection framework 19. Use Caching 20. Use Pagination 21. Remove unnecessary codes, variables, methods 22. Use Comments 23. Use a common code formatting style 24. Use SonarLint 25. Be Simple! Getting Started Prerequisites","default_branch":null,"files":null,"tree":[],"storefront":"/r/arsy786","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/arsy786/springboot-best-practices/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}