8000 sm@ doesn't seem work in Spring Boot 3.5.0 · Issue #3824 · GoogleCloudPlatform/spring-cloud-gcp · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

sm@ doesn't seem work in Spring Boot 3.5.0 #3824

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
johanhaleby opened this issue May 28, 2025 · 2 comments
Open

sm@ doesn't seem work in Spring Boot 3.5.0 #3824

johanhaleby opened this issue May 28, 2025 · 2 comments
Labels
priority: p2 type: bug Something isn't working

Comments

@johanhaleby
Copy link

I'm trying to upgrade one of our apps to Spring Boot 3.5.0 and spring-cloud-gcp 6.2.1.

According to the docs, you should no longer use the sm:// config suffix but rather sm@. So we've changed from this:

spring:
  application:
    name: my-aoo
  config:
    import: sm://
    gcp:
      trace:
        enabled: true
      project-id: my-project
  rabbitmq:
    addresses: "${sm://rabbitmq_uri}"

to this:

spring:
  application:
    name: my-aoo
  config:
    import: sm@
    gcp:
      trace:
        enabled: true
      project-id: my-project
  rabbitmq:
    addresses: "${sm@rabbitmq_uri}"

But now our application doesn't start when we're deploying to K8S:

***************************
APPLICATION FAILED TO START
***************************

Description:

Failed to bind properties under 'spring.rabbitmq' to org.springframework.boot.autoconfigure.amqp.RabbitProperties:

    Property: spring.rabbitmq.addresses
    Value: "${sm@rabbitmq_uri}"
    Origin: URL [file:config/application.yaml] - 29:16
    Reason: java.lang.NumberFormatException: For input string: ""

Action:

Update your application's configuration
@zhumin8 zhumin8 added priority: p2 type: bug Something isn't working labels May 28, 2025
@zhumin8
Copy link
Contributor
zhumin8 commented May 28, 2025

I wonder if this is related: #3821

@sujatakhochede
Copy link

I also have the same issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority: p2 type: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants
0