• Post Reply Bookmark Topic Watch Topic
  • New Topic

Spring Autowire - java.lang.NoSuchMethodException  RSS feed

 
Muhammad Abdul Arif
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
ranger
Sheriff
Posts: 17309
11
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yep very simple. your

@Component
public class MemberDAO

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

Mark
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!