This week's book giveaway is in the Beginning Java forum.
We're giving away four copies of Murach's Java Programming and have Joel Murach on-line!
See this thread for details.
Win a copy of Murach's Java Programming this week in the Beginning Java forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

org.springframework.beans.factory.UnsatisfiedDependencyException  RSS feed

 
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: 9610
37
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!