简体   繁体   English

我如何在 <http:conduit> 标签?

[英]How can I use Spring Expression in <http:conduit> tag?

I've configured Spring CXF client conduit using the below code. 我已经使用以下代码配置了Spring CXF客户端管道。 I want to set name of conduit using Spring Expression, But it does not work and even getUrlPattern does not invoke. 我想使用Spring Expression设置管道的名称,但是它不起作用,甚至getUrlPattern也不会调用。 When I set the name with hard coded string it works properly. 当我用硬编码字符串设置名称时,它可以正常工作。 How can I fix it? 我该如何解决?

<http:conduit  name="#{conduitResolver.getUrlPattern()}">
            ...........
</http:conduit> 

Try $ 试试$

<http:conduit  name="${conduitResolver.getUrlPattern}">
            ...........
</http:conduit> 

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何创建与Thymeleaf和Spring一起使用的新表达式? - How can I create a new expression for use with Thymeleaf and Spring? 如何在Thymeleaf和Spring Boot中使用自定义标记库? - How can I use a custom tag library with Thymeleaf and Spring Boot? 如何在Spring Security表达式中使用Spring Service方法? - How do I use a Spring Service method in a Spring Security expression? 我如何发送带有JavaScript或jquery的jsp页面到spring控制器(带有use <a href=>标签)?</a> - how can i send in jsp page with javascript or jquery to spring controller (with use <a href=> tag)? 我可以在“别名”定义中使用Spring Expression Language吗? - Can I use Spring Expression Language in an “alias” definition? 为什么我不能使用标签 - Why I can't use tag of <spring:message? 如何使用Spring MVC“表单”标签代替“输入”标签? - How can I use Spring MVC “form” tag instead of my “input” tags? 如何在带有 Scala 的注释中对数组使用 Spring 表达式语言 - How do I use Spring Expression Language for an Array in an annotation with Scala 我用的是流动的。 如何访问 activiti:expression 在 java 代码中使用 spring bean 或其他东西 - I use flowable. How can I get access to activiti:expression in java code for using spring beans or something else 如何使用Spring配置文件表达式? - How to use a Spring profile expression?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM