Spring boot startup error for AWS application : There is not EC2 meta data available

前端 未结 8 1562
遥遥无期
遥遥无期 2021-01-07 16:43

I am getting the below error when I am trying to run a Spring boot-AWS application locally :

There is not EC2 meta data available, because the application is

8条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-01-07 16:50

    Found the Issue. I was using spring-cloud-starter-aws-messaging for SQS messaging. The above dependency includes many Auto Detect classes which eventually was firing up even if they were not required.

    Instead I have used spring-cloud-aws-messaging which solved the issue along with many other auto detect issues.

提交回复
热议问题