使用门户属性或控制面板禁用Liferay Web服务

使用门户属性或控制面板禁用Liferay Web服务,liferay,liferay-7,liferay-dxp,Liferay,Liferay 7,Liferay Dxp,我正在为我的门户应用程序使用Liferay DXP。我想使用控制面板或门户属性 禁用未使用的默认/自定义Web服务 禁用对API页面(API/jsonws)的访问 是否可以使用门户属性或控制面板执行上述操作 如有任何参考/帮助,将不胜感激 # # The property "jsonws.web.service.paths.excludes" denotes patterns for JSON # web service action paths that are not allowed eve

我正在为我的门户应用程序使用Liferay DXP。我想使用控制面板门户属性

  • 禁用未使用的默认/自定义Web服务
  • 禁用对API页面(API/jsonws)的访问
  • 是否可以使用门户属性或控制面板执行上述操作

    如有任何参考/帮助,将不胜感激

    #
    # The property "jsonws.web.service.paths.excludes" denotes patterns for JSON
    # web service action paths that are not allowed even if they match one of
    # the patterns set in "jsonws.web.service.paths.includes".
    #
    # Env: LIFERAY_JSONWS_PERIOD_WEB_PERIOD_SERVICE_PERIOD_PATHS_PERIOD_EXCLUDES
    #
    jsonws.web.service.paths.excludes=\
        /user/update-password
    
    
    #
    # Set this property to true if JSON web services are discoverable through
    # the API page.
    #
    # Env: LIFERAY_JSONWS_PERIOD_WEB_PERIOD_SERVICE_PERIOD_API_PERIOD_DISCOVERABLE
    #
    jsonws.web.service.api.discoverable=true
    
    您可以在portal-ext.properties中尝试以上属性

    参考访问

    这是1)配置问题,2)要求提供文档。这是结束Stackoverflow主题外问题的两个原因(请参阅)。如果你把它带到Liferay论坛:它将在那里的主题上(Liferay.dev/forums)