从 Alfresco 的 alfresco

编程入门 行业动态 更新时间:2024-10-25 18:30:56
本文介绍了从 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 被称为global-properties",它是一个 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

并向您的 bean 添加一个 java.util.Properties 类型的 properties 属性

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

更多推荐

从 Alfresco 的 alfresco

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

发布评论

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

>www.elefans.com

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