對PropertyPlaceholderConfigurer有疑問。如果屬性文件發生更改,它是否會動態加載它,或者我們是否必須啓動應用程序以使更改生效?Springframework PropertyPlaceholderConfigurer
4
A
回答
8
它們在啓動時加載。
2
在應用程序啓動過程中,屬性被解析並注入到bean(僅)中。 PropertyPlaceholderConfigurer不監視和重新加載配置文件。
相關問題
- 1. 爲什麼springframework的PropertyPlaceholderConfigurer無法讀取app.properties文件
- 2. Springframework + Tiles
- 3. Springframework beans
- 4. WebSphere和PropertyPlaceholderConfigurer
- 5. PropertyPlaceholderConfigurer和ResourceBundleMessageSource
- 6. PropertySourcesPlaceholderConfigurer和PropertyPlaceholderConfigurer
- 7. 春天PropertyPlaceholderConfigurer
- 8. PropertyPlaceholderConfigurer with Hibernate.cfg.xml
- 9. PropertyPlaceholderConfigurer with Tomcat&ContextLoaderListener
- 10. SpringFramework JdbcTemplate RowMapper
- 11. SLF4J as SpringFramework Logger
- 12. JCaptcha和SpringFramework
- 13. SessionAttribute和SpringFramework
- 14. java.lang.NoClassDefFoundError:org/springframework/core/DefaultParameterNameDiscoverer
- 15. java.lang.NoClassDefFoundError:org/springframework/context/EnvironmentAware
- 16. Springframework 2.5.6和OSGi
- 17. 使用@value與PropertyPlaceholderConfigurer
- 18. PropertyPlaceholderConfigurer並依賴上
- 19. propertyPlaceHolderConfigurer和environement可變
- 20. Spring自定義PropertyPlaceholderConfigurer
- 21. 使用PropertyPlaceholderConfigurer和PropertySource
- 22. java.lang.NoClassDefFoundError:org/springframework/beans/factory/NoUniqueBeanDefinitionException
- 23. NoClassDefFoundError:org/springframework/aop/framework/AbstractAdvisingBeanPostProcessor
- 24. NoClassDefFoundError:org/springframework/jdbc/core/RowMapper
- 25. java.lang.NoClassDefFoundError:org/springframework/transaction/interceptor/TransactionInterceptor
- 26. java.lang.NoClassDefFoundError:org/springframework/orm/hibernate5/HibernateTransactionManager
- 27. NoClassDefFoundError:org/springframework/context/support/ClassPathXmlApplicationContext
- 28. java.lang.NoClassDefFoundError:org/springframework/messaging/converter/MessageConverter
- 29. 獲取springframework的FatalBeanException
- 30. java.lang.NoClassDefFoundError:org/springframework/beans/factory/Aware
嗨,謝謝你的回覆。有沒有辦法監控和重新加載配置文件? – user12121
查看@DaveNewton的答案。 – Barend