Spring Actionscript:找不到FlexPropertyPlaceholderConfigurer

时间:2010-03-20 04:56:28

标签: spring-actionscript

有!我使用springactionscript 1.0RC1并发现如下错误:

  

错误:找不到名为“org.springextensions.actionscript.ioc.factory.con fig.flex.FlexPropertyPlaceholderConfigurer”的类。   你确定已经编译了指定的类吗?   在此处查找有关此主题的更多信息:   http://www.springactionscript.org/do...inclusion.html

我的applicationContext.xml是

<objects>
    <property file="config.properties" required="false" />
    <object id="constants" class="com.libsys.utils.Constants">
        <property name="endpoint" value="${endpoint}" />
    </object> 
</objects>

如果xml文件没有属性文件,则可以正常工作。我不知道这是怎么回事,你能告诉我怎么解决吗?谢谢!

BTW,我的编译器版本是4.1.0.14632,springactionscrip是1.0RC1。

1 个答案:

答案 0 :(得分:0)

您是如何加载应用程序上下文的?使用XMLApplicationContext还是使用FlexXMLApplicationContext?

如果您使用后者,FlexPropertyPlaceholderConfigurer应该包含在库中,您不应该收到此错误。如果您正在使用XMLApplicationContext,那么只需确保在代码中的某处引用FlexPropertyPlaceholderConfigurer,以便进行编译。

例如在您的主要课程中:

private static var compiledClasses:Array = [FlexPropertyPlaceholderConfigurer];