Could not autowire field in spring. why?

后端 未结 8 1774
长情又很酷
长情又很酷 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:40

    When you get this error some annotation is missing. I was missing @service annotation on service. When I added that annotation it worked fine for me.

提交回复
热议问题