Could not autowire field in spring. why?

后端 未结 8 1805
长情又很酷
长情又很酷 2020-12-08 20:09

I keep getting this error, and can\'t figure out why.. yes I know there many people had similar issues, but reading the answers they got, does not solve my problem.

8条回答
  •  星月不相逢
    2020-12-08 20:48

    for those who are facing the same problem, even if you added component-scan on your XML and still facing the same issue please Make Sure you wrote a clean code in your Repository. the problem you are facing is directly related to the code you wrote for hibernate transaction. most Importantly please make sure your db Query is correct.

提交回复
热议问题