Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何设置默认boolean值ServletContextPropertyPlaceholderConfigurer?例如,false如果未将属性设置为,我希望属性具有价值<context-param>
boolean
ServletContextPropertyPlaceholderConfigurer
false
<context-param>
您始终可以为属性配置“注入”某些值的每个位置定义一个默认值。
默认的语法是${propertyName:default}
${propertyName:default}
例如:
${myContextParam:false}