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

前端 未结 8 1679
遥遥无期
遥遥无期 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:54

    I had the same issue and I was able to prevent spring cloud aws from auto configuring the region by adding this exclude on the Spring configuration.

        @SpringBootApplication(exclude = ContextRegionProviderAutoConfiguration.class)
    

提交回复
热议问题