PropertyPlaceholderConfigurer可以将${...}替换为指定的properties文件或system properties中的值,而spring在Log4jConfigListener或是WebAppRootListener会指定一个system property表示web root的值,default是webapp.root. 这样的功能非常方便配置文件参数的赋值。
spring 中的 PropertyPlaceholderConfigurer 用法
最新推荐文章于 2022-12-21 09:01:22 发布