0
我已經使用了多年的春天,但似乎無法找到這一個文件。如果我有這樣配置的彈簧豆:春天屬性值 - res:URI
<bean id="myBeanInstance" class="org.mybean">
<property name="path" value="res:a-string-goes-here"/>
</bean>
該值被解釋爲純粹的字符串? 'res:'如何影響任何內容以及它在何處被解釋?任何指向相應文檔的指針都會很棒。
謝謝!
謝謝,這是有道理的,但具體文件在哪裏呢? – Mark 2014-10-20 04:44:15
在BeanFactoryPostProcessor上:http://docs.spring.io/spring/docs/current/spring-framework-reference/htmlsingle/#beans-factory-extension-factory-postprocessors。在PropertyPlaceholderConfigurer上:http://docs.spring.io/spring/docs/current/spring-framework-reference/htmlsingle/#beans-factory-placeholderconfigurer。默認值 - 在參考中找不到,但在此處解釋,例如:http://www.javacodegeeks.com/2013/01/spring-property-placeholder-configurer-a-few-not-so-obvious-options html的 – Alexander 2014-10-21 13:10:09