Introduction to Spring MVC testing framework, highlighting the advantages of using MockMvc instead of regular unit tests. The post shows three ways of setting up MockMvc and how using standaloneSetup has the advantages of unit and integration testing.
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 use a docker + systemd only approach to deploy containers as Linux services without the need for third party tools or complex deployment descriptors.
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.