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 < :effectiveDate'}"/> </bean> </ beans >
结果为:ruleFBRILt= SELECT COUNT(*) FROM FARE_BY_RULE_SEG WHERE RULE_BTCH_SG IN (:batchSGs) AND SEG_EFF_DT < :effectiveDate (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |