日期:2014-05-19 浏览次数:20972 次
//类ReCalculateIndexName有个recalculateIndexNameMap属性,提供了setter方法,注入一个map <bean name="reCalculateIndexName" class="com.huawei.datavoice.common.ReCalculateIndexName"> <property name="recalculateIndexNameMap"> <map> <entry key = "index.version.defect.dts"> <value>index.version.defect.discover.suggestion.Bversion</value> </entry> <entry key = "index.version.defect.jira"> <value>index.version.defect.jira.total.number.critical.daily</value> </entry> <entry key = "index.version.demand.story"> <value>index.version.demand.jira.story.total.number.critical.daily</value> </entry> </map> </property> </bean> //构造方法注入DefaultSpringSecurityContextSource这个类有个有参的构造方法,参数是个字符串 <bean id="contextSource" class="org.springframework.security.ldap.DefaultSpringSecurityContextSource"> <constructor-arg value="ldap://xxxx" /> </bean>
------解决方案--------------------