SAP Commerce配置属性的优先级

简介: SAP Commerce配置属性的优先级

https://help.sap.com/viewer/b490bb4e85bc42a7aa09d513d0bcb18e/1905/en-US/8b8e13c9866910149d40b151a9196543.html


优先级从高到低:


The local.properties file


image.pngExtension-specific project.properties files

The global project.properties file (that is, the project.properties file in the <${HYBRIS_BIN_DIR}/platform> directory)


image.pngimage.pngimage.png不推荐修改platform文件夹下面的project.properties文件,原因如下:


Commerce升级时,这个文件的内容会被覆盖。

在生产场景里,可能根本不具备这个文件所在的文件夹的修改权限。

如何在代码里访问properties

SAP Commerce properties are provided in the global ApplicationContext. With this, you can inject a specific value by using the usual Spring notation:


<bean class="Foo">
  <property name="bar" value="${key_of_property}"/>
</bean>

image.pngimage.pngAccount是一个接口,有set和get方法。

bean.xml:image.pngimage.pngimage.pngimage.png

相关文章
|
16天前
|
数据库 API
启用SAP Fiori之前的一些注意事项
启用SAP Fiori之前的一些注意事项
9 0
|
1月前
|
开发者 UED
SAP UI5 SmartFilterBar 中 ControlConfiguration Aggregation 的作用介绍
SAP UI5 SmartFilterBar 中 ControlConfiguration Aggregation 的作用介绍
14 0
|
12天前
|
安全 UED 开发者
SAP Commerce Cloud 配置项 refreshWithLock=false 的作用介绍
SAP Commerce Cloud 配置项 refreshWithLock=false 的作用介绍
17 0
|
6月前
|
Web App开发 JavaScript 前端开发
SAP UI5 sap.ui.unified 命名空间的作用介绍
SAP UI5 sap.ui.unified 命名空间的作用介绍
47 0
|
6月前
|
前端开发
在 SAP Fiori Gateway 系统配置一个指向 SAPGUI 事务的 tile
对于应用程序类型 Transaction、Web Dynpro 和 URL,开发人员可以直接在 SAP Fiori Launchpad Designer 的目标映射中定义系统别名。
40 0
|
6月前
|
存储 前端开发
在 SAP Fiori Launchpad 里给需要执行的 SAPGUI 事物码配置系统别名
在 SAP Fiori Launchpad 里给需要执行的 SAPGUI 事物码配置系统别名
34 0
在 SAP Fiori Launchpad 里给需要执行的 SAPGUI 事物码配置系统别名
|
6月前
|
前端开发
SAP Hybris Category 显示在 Storefront 的判定条件
SAP Hybris Category 显示在 Storefront 的判定条件
40 0
|
7月前
|
Java 数据库
如何给 SAP Commerce Cloud Site 设置默认语言
如何给 SAP Commerce Cloud Site 设置默认语言
43 0
在 SAP Fiori Gateway 系统配置一个指向 SAPGUI 事务的 tile(1)
在 SAP Fiori Gateway 系统配置一个指向 SAPGUI 事务的 tile
|
前端开发
在 SAP Fiori Gateway 系统配置一个指向 SAPGUI 事务的 tile(2)
在 SAP Fiori Gateway 系统配置一个指向 SAPGUI 事务的 tile