Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Spring:xception in thread "main" org.springframework.beans.factory.BeanCreationException

 
Kaustubh G Sharma
Ranch Hand
Posts: 1283
Chrome Java Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Getting below exception while running mentioned spring test code : please help



Exception




TestClass.java




Employee.java


BeanEx.xml



Address.java

 
Bill Gorder
Bartender
Posts: 1682
7
Android IntelliJ IDE Linux Mac OS X Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


That does not match any of the constructors you have defined for you employee object.

You need to either provide no arguments, an Address bean, or a String, int, Address
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic