xml文件里一个字符串引用另一个字符串

<?

xml version= "1.0" encoding= "UTF-8" ?>

<

beans xmlns= "http://www.springframework.org/schema/beans"

xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:context="http://www.springframework.org/schema/context"

xmlns:aop="http://www.springframework.org/schema/aop" xmlns:tx="http://www.springframework.org/schema/tx"

xsi:schemaLocation="http://www.springframework.org/schema/beans

http://www.springframework.org/schema/beans/spring-beans-3.2.xsd

FROM FARE_BY_RULE_SEG

FROM FARE_BY_RULE_SEG

WHERE RULE_BTCH_SG IN (:batchSGs)

AND SEG_EFF_DT < :effectiveDate

WHERE RULE_BTCH_SG IN (:batchSGs)

AND SEG_EFF_DT < :effectiveDate

http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.2.xsd

http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-3.2.xsd

http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-3.1.xsd">

 

<import resource="classpath:/spring/FilingTextHistoryQueries.xml" />

 

 

<bean id="sqlFareByRuleIndexCnt" class="java.lang.String">

<constructor-arg index="0">

<value>

SELECT COUNT(*)

FROM FARE_BY_RULE_SEG

WHERE RULE_BTCH_SG IN (:batchSGs)

</value>

</constructor-arg>

</bean>

<bean id="ruleFBRILt" class="java.lang.String">

<constructor-arg index="0" value="#{sqlFareByRuleIndexCnt+' AND SEG_EFF_DT &lt; :effectiveDate'}"/>

</bean>

 

 

 

</

beans >

 

结果为:ruleFBRILt=

SELECT COUNT(*)  FROM FARE_BY_RULE_SEG  WHERE RULE_BTCH_SG   IN (:batchSGs)  AND SEG_EFF_DT < :effectiveDate

 

 

你可能感兴趣的:(xml,字符串,引用字符串)