Refreshscope annotated beans are not updated #1112
Labels
component: parameter-store
Parameter Store integration related issue
status: waiting-for-feedback
Waiting for feedback from issuer
Type: Bug
Component:
spring-cloud-aws-parameter-store Version 3.1.0
Describe the bug
I am currently trying to migrate the Spring Cloud AWS dependencies from 2.4.4 to 3.1.0.
The Spring Boot Version we are using is 3.2.2
We use the AWS Parameter Store to obtain the application parameters.
Here is the configuration for that:
So far everything fits, except the refresh of properties in @Refreshscope annotated beans isn't working.
In the debug output I see that the task runs every 15 seconds.
I set a breakpoint in ParameterStorePropertySource Line 45 to see if the parameter "testCount" contains the changed value from the parameter store.
This is the case.
But unfortunately the bean, which is using 'testCount' isn't updated.
Any ideas why this could be?
Do I still need the spring actuator endpoint "refresh"?
management.endpoints.web.exposure.include=refresh
I tried using it, but it didn't do anything.
The text was updated successfully, but these errors were encountered: