在spring xml config中,如何自动获取当前bean的ID值?

时间:2012-08-20 08:06:55

标签: spring

我在spring xml中使用quartz,我有很多配置如上面的配置~~

我想知道,自动获取当前bean的id值

不是每次我手写当前bean的值!!

<bean id="openBaiduTrigger" class="org.springframework.scheduling.quartz.CronTriggerBean">
    <property name="jobDetail">
        <bean p:targetObject-ref="baiduManager" p:targetMethod="createOpenBaiDu" class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean" />
    </property>
    <property name="cronExpression" value="#{p_schedule['openBaiduTrigger.cronExpression']}" />
</bean>

In xml config,how to get the current bean's ID value?

0 个答案:

没有答案
相关问题