Parameter 0 of constructor in required a bean of type 'java.lang.String' that could not be found

前端 未结 10 2485
深忆病人
深忆病人 2021-02-07 01:41

I am working on spring batch with spring boot 2.X application, actually its existing code i am checked out from git. While running the application it fails due to below error on

10条回答
  •  一个人的身影
    2021-02-07 02:02

    The issue in my case was a redundant @Autowired, I initially added a dependency using @Autowired, by eventually commented it out, however I forgot to comment the annotation, due to which the method next to @Autowired was considered as some sort of setter.

    On removing the redundant annotation it is working fine.

提交回复
热议问题