Skip to content
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

rabbit properties in application.properties cannot overwrite the dafault values #2562

Closed
quang-do-se opened this issue Dec 4, 2023 · 1 comment

Comments

@quang-do-se
Copy link

quang-do-se commented Dec 4, 2023

In what version(s) of Spring AMQP are you seeing this issue?

org.springframework.boot:spring-boot-starter-amqp:3.1.6
org.springframework.amqp:spring-rabbit:3.0.10

Describe the bug

Setting values forspring.rabbitmq.username and spring.rabbitmq.password in application.properties does not overwrite the default values, which are configured as guest.

To Reproduce

This repository is set up to reproduce the issue: https://github.com/quang-do-se/spring-amqp-testing

Expected behavior

spring.rabbitmq.username and spring.rabbitmq.password should be updated according to what is defined in the application.properties file.

Sample

Repository: https://github.com/quang-do-se/spring-amqp-testing

image

@artembilan
Copy link
Member

Thank you for the sample.
Just checked out it and ran:

Here are the highlights of this release:
 /\\ / ___'_ __ _ _(_)_ __  __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
 \\/  ___)| |_)| | | | | || (_| |  ) ) ) )
  '  |____| .__|_| |_|_| |_\__, | / / / /
 =========|_|==============|___/=/_/_/_/
 :: Spring Boot ::                (v3.1.6)

2023-12-04T11:51:41.739-05:00  INFO 18604 --- [           main] org.example.Main                         : Starting Main using Java 17.0.5 with PID 18604 (C:\SpringIO\tmp\spring-amqp-testing\build\classes\java\main started by abilan in C:\SpringIO\tmp\spring-amqp-testing)
2023-12-04T11:51:41.741-05:00  INFO 18604 --- [           main] org.example.Main                         : No active profile set, falling back to 1 default profile: "default"
2023-12-04T11:51:42.325-05:00  INFO 18604 --- [           main] org.example.Main                         : Started Main in 0.82 seconds (process running for 1.117)
Host: test-host
Username: test-user
Password: test-password

So, I cannot reproduce what you are claiming.

More over it sounds more like nothing to do with Spring AMQP, but rather Spring Boot by itself.
This project does not manage those properties.

I'm closing as Invalid.
If you still have some concerns about that behavior, please, consider to re-open issue in Spring Boot by itself.
Even if there is any problem, we just cannot do anything here since the code is out there in Spring Boot.

Thanks

@artembilan artembilan closed this as not planned Won't fix, can't repro, duplicate, stale Dec 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants