【发布时间】:2013-12-31 13:15:03
【问题描述】:
我想通过属性文件填充传输端点。我试过了,但是没有用
<util:properties id="cxfProperties" location="/WEB-INF/classes/cxf.properties" />
<util:list id="transportEndpoints">
<!--
<value>http://localhost:8080/doubleit/services/doubleit.*</value>
-->
<value>#{cxfProperties.service.wsdllocation}</value>
</util:list>
在我的属性文件中
service.wsdllocation=http://localhost:8080/doubleit/services/doubleit.*
我得到错误:
表达式解析失败;嵌套异常是 org.springframework.expression.spel.SpelEvaluationException: EL1008E:(pos 14): 找不到字段或属性“服务” “java.util.Properties”类型的对象
【问题讨论】:
标签: spring properties spring-el spelevaluationexception