Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException:

前端 未结 2 1023
轻奢々
轻奢々 2020-12-28 16:55

I am creating web application using Spring, Hibernate, Struts, and Maven.

I get the below error when I run mvn clean install command:

o         


        
2条回答
  •  滥情空心
    2020-12-28 17:31

    You need to provide a candidate for autowire. That means that an instance of PasswordHint must be known to spring in a way that it can guess that it must reference it.

    Please provide the class head of PasswordHint and/or the spring bean definition of that class for further assistance.

    Try changing the name of

    PasswordHintAction action;
    

    to

    PasswordHintAction passwordHintAction;
    

    so that it matches the bean definition.

提交回复
热议问题