-
Notifications
You must be signed in to change notification settings - Fork 704
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
FactoryBean initialization with unresolved properties #439
Comments
Here was the fix 9b8a70e |
Something else to consider. This worked in Edgware.SR5. The code in |
The logging is the same. Yes I think it's been like this for a long time. It's probably a fundamental issue in the way or order things are executed. I would say you first load the properties and then instantiate any Another thing to consider (in the unfixed situation): My class implements |
Did some more testing and with spring-cloud-dependencies:Greenwich.M3 the issue is resolved. Not sure why it seemed not to be before... Using io.pivotal.spring.cloud:spring-cloud-services-config-client:2.0.3.RELEASE in my production project also shows that the issue is resolved. It's strange though, that using this in combination with spring-cloud-dependencies:Finchley.SR2 resolves the issue on PCF, but not in the demo project. There Greenwich.M3 is required. Anyway, closing the issue. Thanks for your support. |
Hi spring-cloud-commons,
I encountered a bug with using
FactoryBean
combined with the Spring Cloud Config Server. The guys from spring-cloud-config were nice enough to fix the issue in spring-cloud-commons.They fixed a initialization cascade, but the log from the demo project shows that the properties are loaded and should be resolvable when the
FactoryBean
is initialized.I also find that with the fixed spring-cloud-context, the problem is still present when deploying on PCF.
So I'm creating this issue in the hopes you could implement an improvement that makes sure the properties are resolved and available to
FactoryBean
s upon initialization.The text was updated successfully, but these errors were encountered: