This post shows how to solve the scoped bean injection problems that arises when injecting a Prototype scoped Bean into a Singleton scoped Bean. It shows the different approaches to solve the problem and the advantages and disadvantages for each of them.
Java 10 was released the past 20th of March following the new tight six-month release schedule. This version comes just after the Java 9 release on September 2017 and marks this past release obsolete. This post shows some of the new features available in Java 10.
In this post we'll see how to define custom spring-data repository methods and their implementation for a book repository in MongoDB and how to write unit tests to check this custom implementation.
When running a static code analysis tool or inspecting/analyzing your code from your IDE, you may have encountered the following warning regarding your @Autowired fields: Field injection is not recommended. This post shows the alternatives to field injection and how to avoid this warning.
How to serve an Angular (>2) using Spring Boot as the Backend, and a Gradle script to perform automated build and deploy tasks both for Spring and Angular.
Learn what causes the java.lang.OutOfMemoryError: GC overhead limit exceeded error, how to diagnose and fix it, and best practices to avoid it in the future.