Spring Web Flow:如何从< evaluate />?调用静态方法 [英] Spring Web Flow: How to call static method from <evaluate />?
本文介绍了Spring Web Flow:如何从< evaluate />?调用静态方法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我需要调用 org.hibernate.Hibernate 上课。
如何在流元素中执行此操作?
I need to call static method of org.hibernate.Hibernate class. How to do that in element of flow ?
推荐答案
您可以使用以下Spring EL结构来评估静态方法:
You can use the following Spring EL construct to evaluate static methods:
<evaluate expression="T(org.hibernate.Hibernate).initialize(yourObject)"/>
查看相应的Spring EL参考部分:
See the appropriate Spring EL reference part:
这篇关于Spring Web Flow:如何从< evaluate />?调用静态方法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文