File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
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: 27
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: 17276

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 - iOS Apps
How to Ask Questions the Smart Way FAQ
I agree. Here's the link:
subject: Spring Autowire - java.lang.NoSuchMethodException
It's not a secret anymore!