1

我必须在 Liferay 中设计一个服务构建器来检索外观数据。然后必须在部署外观之前部署此服务。我不知道如何部署此服务。实际上,我得到了一个类型为“no bean named...is defined”的异常。

先感谢您,

此致。

4

1 回答 1

2

您可以在 WEB-INF/liferay-plugin-package.properties 中声明依赖项。最简单的方法是在其他插件中查找它,或者使用 Liferay IDE 或 Developer Studio 来编辑文件,因为它带有基于表单的编辑器,可以识别文件内容。

此依赖项将确保包含您的服务的插件将在依赖它的所有其他内容之前部署。在满足其依赖关系之前,不会部署依赖插件。

这里的示例文件:

#
# Specify other plugins that depend on deployment of this plugin. Some
# plugins require this in order to rely on services and features provided by
# other plugins.
#
#required-deployment-contexts=
#required-deployment-contexts=\
# chat-portlet,\
# flash-portlet,\
# sample-service-builder-portlet
于 2013-05-28T19:13:26.253 回答