When you use Spring (Boot) you inevitably come around or will use the @ComponentScan annotation to automatically detect your classes (meta) annotated with @Component.
[Read More]
My name is Marten Deinum and I'm the (co)author of a few books related to Spring. I also work as a Consultant for a company called Conspect and I work as a diving instructor.
I maintain a few projects containing utilities to make development of applications with Java and Spring easier. When not coding or diving I answer Spring related questions on StackOverflow.
I maintain a few projects containing utilities to make development of applications with Java and Spring easier. When not coding or diving I answer Spring related questions on StackOverflow.
Current Projects
Recent Posts
Dependency Injection in Java
Before diving in let’s take a look at two definitions of dependency injection (according to Wikipedia).
[Read More]
Why are my autowired fields null
A commonly asked question on sites like StackOverflow is “Why is the field i’m autowiring null”. When this happens it generally is an error of the user as an autowired field in Spring cannot be null. At startup Spring will try to satisfy all the dependencies of a bean, if...
[Read More]