如何从backoffice-config.xml读取local.properties

2020-09-03 19:05发布

         点击此处--->   EasySAP.com群内免费提供SAP练习系统(在群公告中)

加入QQ群:457200227(SAP S4 HANA技术交流) 群内免费提供SAP练习系统(在群公告中)


您好,专家在使用referenceSearchCondition缩小搜索范围时遇到问题。 referenceSeachCondition的值正尝试使用下面提到的方式片段从local.properties中获取。 但是我无法辨认。

 
       referenceSearchCondition_categoryLevel 
           {@ configurationService.getConfiguration()。getString(" category.level.code")} 
     

 
  referenceSearchCondition_categoryLevel_contains 
      spring.getBean('configurationService')。getConfiguration()。getString(parentObject.getCategoryLevel()。getCode())} 
 

 任何人都可以请问一下如何从config.xml调用服务
 谢谢,
 维卡斯B 

         点击此处--->   EasySAP.com群内免费提供SAP练习系统(在群公告中)

加入QQ群:457200227(SAP S4 HANA技术交流) 群内免费提供SAP练习系统(在群公告中)


您好,专家在使用referenceSearchCondition缩小搜索范围时遇到问题。 referenceSeachCondition的值正尝试使用下面提到的方式片段从local.properties中获取。 但是我无法辨认。

 
       referenceSearchCondition_categoryLevel 
           {@ configurationService.getConfiguration()。getString(" category.level.code")} 
     

 
  referenceSearchCondition_categoryLevel_contains 
      spring.getBean('configurationService')。getConfiguration()。getString(parentObject.getCategoryLevel()。getCode())} 
 

 任何人都可以请问一下如何从config.xml调用服务
 谢谢,
 维卡斯B 
付费偷看设置
发送
2条回答
闻人可可
1楼-- · 2020-09-03 19:36

请尝试以下代码:

  spring.getBean(" configurationService")。getConfiguration()。getString(" category.level.code")  

请确保在local.properties文件或扩展程序的project.properties文件中为键category.level.code配置了一个值。

浮生未央
2楼-- · 2020-09-03 19:48

您好,Vikas -您收到的错误可能是由于其他一些代码。 读取配置属性不会给您FlexibleSearch错误。

一周热门 更多>