It's not a secret anymore!*
The moose likes Spring and the fly likes Spring Autowire - java.lang.NoSuchMethodException Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "Spring Autowire - java.lang.NoSuchMethodException" Watch "Spring Autowire - java.lang.NoSuchMethodException" New topic

Spring Autowire - java.lang.NoSuchMethodException

Muhammad Abdul Arif

Joined: Feb 04, 2012
Posts: 25
Hi All,

I was trying to use annotations in my project which was using SimpleFormControllers. I am stuck in adding @Autowired to one of my DAO class. Below is the code. Can you guys please help me how to autowire this DAO.

Mark Spritzler

Joined: Feb 05, 2001
Posts: 17249

Yep very simple. your

public class MemberDAO

Doesn't have a no args constructor, and there is no @Autowired on any of its constructor(s).


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
subject: Spring Autowire - java.lang.NoSuchMethodException
Similar Threads
Unable to configure Spring with Hibernate
java.lang.VerifyError,runtime exception,can anyone explain when or why get this runtime exception
Error while instantiating JdbcTemplate in spring-config.xml?
org.springframework.beans.factory.BeanCreationException: Error creating bean with name...