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

前端 未结 10 2454
深忆病人
深忆病人 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

    I had the same error but the error was generated by Feign Client. If you have this error using feign client you must add @EnableFeignClients on your main class:

    @SpringCloudApplication
    @EnableFeignClients
    public class Application {
    ...
    }
    

提交回复
热议问题