How-to articles, tricks, and solutions about SPRING

UnsatisfiedDependencyException: Error creating bean with name

UnsatisfiedDependencyException is a runtime exception that is thrown when the Spring framework is unable to resolve a dependency for a bean.

Using env variable in Spring Boot's application.properties

You can use environment variables in your application.properties file by using the spring.profiles.active property.

What's the difference between @Component, @Repository & @Service annotations in Spring?

In Spring, the @Component annotation is used to mark a Java class as a candidate for component scanning. The @Repository annotation is a specialization of @Component for use in the persistence layer.

Why is my Spring @Autowired field null?

There are several reasons why an @Autowired field in a Spring bean might be null:

1 2