读取spring配置xml中的上下文参数值
在context.xml中添加了以下参数读取spring配置xml中的上下文参数值,spring,tomcat,Spring,Tomcat,在context.xml中添加了以下参数 <Parameter name="channel" value="any" override="false"/> 我想读取spring配置xml中通道的值 <intercept-url pattern="/**" access="ROLE_USER" requires-channel="READ_VALUE_OF_CHANNEL_PARAMETER" /> 需要替换信道参数的读取值。 怎么做?找到了答
<Parameter name="channel" value="any"
override="false"/>
我想读取spring配置xml中通道的值
<intercept-url pattern="/**" access="ROLE_USER" requires-channel="READ_VALUE_OF_CHANNEL_PARAMETER" />
需要替换信道参数的读取值。
怎么做?找到了答案
<intercept-url pattern="/**" access="ROLE_USER" requires-channel="#{contextParameters.channel}" />
找到了答案
<intercept-url pattern="/**" access="ROLE_USER" requires-channel="#{contextParameters.channel}" />