1
如何设置默认boolean
值与ServletContextPropertyPlaceholderConfigurer
?例如,如果财产没有设置为<context-param>
如何为ServletContextPropertyPlaceholderConfigurer设置默认的上下文参数值?
如何设置默认boolean
值与ServletContextPropertyPlaceholderConfigurer
?例如,如果财产没有设置为<context-param>
如何为ServletContextPropertyPlaceholderConfigurer设置默认的上下文参数值?
,我希望财产具有false
值,您可以随时为属性配置“注入”某个值的每个位置定义默认值。
默认synax是${propertyName:default}
因此,例如:
${myContextParam:false}