Open utterances-bot opened 3 years ago
For 9.1 example, I'm really like to see an example how to read a bean property from ApplicationContext.xml and update it with a new value.
Btw, the sections after 9.1 were numbered incorrectly.
Thanks for your feedback, I would improve the blog content.
After playing the example in 9.1, finally I got what I want to do. Excellent! Thank you very much!
You are welcome, and I have written a post about spring boot and xml configuration example, here is the link: https://github.com/bswen/bswen-project/tree/master/spring-boot-applicationxml
Hello again, BSWen. How to make your 9.1 code to work for a bean? My datasource is defined in a bean. Especially I'm afraid that this line " @ConfigurationProperties(prefix="spring.datasource") " probably won't work anymore.
By the way mu project is an old spring project. It uses just beans, no Spring Boot so I don't see DataSourceConfig is ever triggered.
How to setup datasources dynamically in springboot
https://www.bswen.com/2018/05/springboot-How-to-setup-datasources-dynamically-in-springboot.html