你好,
我遇到了为spring-boot 3.0应用程序配置spring Boot 参数存储的问题。
我添加了以下依赖项
<dependency>
<groupId>io.awspring.cloud</groupId>
<artifactId>spring-cloud-aws-starter</artifactId>
<version>3.0.0-M3</version>
</dependency>
<dependency>
<groupId>io.awspring.cloud</groupId>
<artifactId>spring-cloud-aws-starter-parameter-store</artifactId>
<version>3.0.0-M3</version>
</dependency>
<dependency>
<groupId>io.awspring.cloud</groupId>
<artifactId>spring-cloud-aws-starter</artifactId>
<version>3.0.0-M3</version>
</dependency>
<dependency>
<groupId>io.awspring.cloud</groupId>
<artifactId>spring-cloud-aws-autoconfigure</artifactId>
<version>3.0.0-M3</version>
</dependency>
我的application.properties:
spring.config.import=aws-parameterstore:/config/app
spring.cloud.aws.parameterstore.region=eu-west-1
但是,我仍然遇到一个错误:
Description:
Config data resource '[ParameterStoreConfigDataResource@198c7a4b context = '/config/app', optional = false]' via location 'aws-parameterstore:/config/app' does not exist
Action:
Check that the value 'aws-parameterstore:/config/app' is correct, or prefix it with 'optional:'
我是否遗漏了任何依赖项或其他配置?
1条答案
按热度按时间uklbhaso1#
我遇到了同样的问题,并通过添加以下依赖项使其工作: