A deep dive into unit testing in Go
In this tutorial, we’ll cover how to write unit tests in Go using the built-in testing package and several external tools. By the end of this article, you’ll understand concepts…
Favourite tutorials for developers
In this tutorial, we’ll cover how to write unit tests in Go using the built-in testing package and several external tools. By the end of this article, you’ll understand concepts…
This article shows how to use HK2 dependency injection framework in Jersey and enable auto-scanning auto-discovery of the declared @Contract and @Service components. Jersey, by default, uses HK2 (Hundred-Kilobyte Kernel)…
In Spring framework, when your class contains multiple constructors with same number of arguments, it will always cause the constructor injection argument type ambiguities issue. To fix it, you should…
Since Spring 3.0, Spring supports for the standard JSR 330: Dependency Injection for Java. In Spring 3 application, you can uses standard: 1 - @Inject instead of Spring’s @Autowired to…
A simple Spring example to show you how to dependency inject a bean via setter method, the most common used DI method.
In Spring frameowork, Dependency Injection (DI) design pattern is used to define the object dependencies between each other. It exits in two major types : 1 - Setter Injection -…
The concept of object-oriented is a good design to break your system into a group of reusable objects. However, when system grows larger, especially in Java project, the huge object…
Global variables. Global states. These words induce fear and pain in every developer’s heart who had the unfortunate experience to deal with them. Did you already fight against applications behaving…