• Post Reply Bookmark Topic Watch Topic
  • New Topic

org.springframework.beans.factory.UnsatisfiedDependencyException

 
Mentor Alb
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi to everyone,
I'm trying to test my Spring Boot Application's DAO layer with embedded database but when I run it unfortunately it throws org.springframework.beans.factory.UnsatisfiedDependencyException as follows:


I have this test class:







application.yml



Your help in this matter is greatly appreciated!
 
Ankit Garg
Sheriff
Posts: 9597
36
Android Google Web Toolkit Hibernate IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I haven't worked on Spring Boot, but don't you need to mark your DAO as @Repository or something which tells Spring that it is a bean it needs to load?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!