从Alfresco的alfresco

编程入门 行业动态 更新时间:2024-10-24 10:23:02
本文介绍了从Alfresco的alfresco-global.properties文件访问值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

可以说我在alfresco-global.properties文件中创建了一个名为 test123的自定义属性。是否可以在Alfresco的Java bean中使用自定义对象或其他方法来访问其值?

Lets say I create a custom property called "test123" inside of the alfresco-global.properties file. Is there a custom object or some other way which I can use to access its value inside of a Java bean in Alfresco?

推荐答案

Spring bean被称为全局属性,它是java.util.Properties类型

The Spring bean is called "global-properties" and it's a java.util.Properties type

因此您可以像这样注入它:

So you can inject it like that:

<property name="properties"> <ref bean="global-properties"/> </property

并将类型为java.util.Properties的properties属性添加到你的豆子

and add a properties property of type java.util.Properties to your bean

更多推荐

从Alfresco的alfresco

本文发布于:2023-11-28 10:17:14,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1641997.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:Alfresco   alfresco

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!