简体   繁体   中英

security:http and properties (Spring Security)

I am using Spring Security 3.0.6. for modularity reasons, I would like to use properties in the security:http context.

<security:http>
  ...
  <security:intercept-url pattern="/path/to/my/url/*" access="${token}" />
  ...
</security:http>

Is that possible ? If not, if there any workaround that could be used to obtain the same behavior ?

您可以使用标准的PropertyPlaceholderConfigurer

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM