aspose file tools
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 The Software Craftsman this week in the Agile 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: 17260

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
I agree. Here's the link:
subject: Spring Autowire - java.lang.NoSuchMethodException