-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Question about PropertySourcesPlaceholderConfigurer Bean in JdbcHttpSession #775
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
Comments
Hi @sayan-chaliha - this was introduced while addressing #616 (see also #621 and 5ecf390). Can you explain in more detail how is it messing up placeholder resolution in your app? Sample app would also be nice to have. |
Hey @vpavic -- thanks for the pointers! I'll go through them. I'll need some time before I can get a sample working for you. The libraries I'm using are internal to the company I'm working for. Briefly though, the company has it's own infrastructure for file based configuration of applications (which is injected based on the environment the app is deployed to). The library class in question extends PropertyPlaceholderConfigurer. On instantiating a bean of this library class, I expect that all placeholders are resolved by it. However, randomly (on some environments) https://github.com/spring-projects/spring-session/blob/master/spring-session/src/main/java/org/springframework/session/jdbc/config/annotation/web/http/JdbcHttpSessionConfiguration.java#L192 gets instantiated first and doesn't resolve any of the configuration placeholders that I define. Would it be possible to ignore placeholders it cannot resolve so that another resolver can kick in? |
@sayan-chaliha Could you use the same workaround as suggested in #867 (comment)?
|
Sure... works for me.
Thanks,
Sayan.
… On 09-Sep-2017, at 8:50 PM, Vedran Pavić ***@***.***> wrote:
@sayan-chaliha Could you use the same workaround as suggested in #867 (comment)?
Can you attempt to override the PropertySourcesPlaceholderConfigurer provided by Spring Session configuration by assigning the propertySourcesPlaceholderConfigurer id to your PropertySourcesPlaceholderConfigurer bean?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
@sayan-chaliha There are proposed changes to Spring Session JDBC configuration which would eliminate the need for having |
Hey,
I'm looking at https://github.com/spring-projects/spring-session/blob/master/spring-session/src/main/java/org/springframework/session/jdbc/config/annotation/web/http/JdbcHttpSessionConfiguration.java#L192
This bean definition here is messing up placeholder resolution in my application. Is it really necessary?
The text was updated successfully, but these errors were encountered: