Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要在我用 Java 开发的 Alfresco webscript 中包含一个属性文件。我怎样才能包括它?属性文件包含一个对服务工作有用的哈希映射。
如何使用 ResourceBundle?
请注意,它不是 i18n 文件。
谢谢
——马可
您应该能够通过使用您的 java webscript bean 的 spring 注入将您的道具作为地图:
<property name="your map"> <bean class="org.springframework.beans.factory.config.PropertiesFactoryBean"> <property name="location" value="your_properties.properties"/> </bean> </property>