I have a property declaration like this on a [Component] class:
When I given this property value like thisCode:[Property(value='${server.port}')] public var extProperty:String;
or given the property value in appContext.xmlCode:_appContext = new FlexXMLApplicationContext(_springAsContextURL); _appContext.properties.setProperty("server.port", "8080");
it work fine.Code:<property name="server.port" value="8080"/>
But when i given this property in a external *.properties file and load the file in appContext.xml
it throwsCode:<property file="springas/global.properties" prevent-cache="false" required="true"/>
Error: Could not resolve placeholder '${server.port}'
I think this is a bug ,because ComponentClassScanner scan [Component] class and try to get the ${server.port} value before all ObjectFactoryPostProcessor ,especially FlexPropertyPlaceholderConfigurer,so can't get the value
any help is welcome to fix it![]()


Reply With Quote