2016-09-01 26 views

回答

1

在你的Web控制台的外观为您的OSGi bundle,这可以例如在发现:

http://localhost:4502/system/console/bundles 

然后在你的包的属性查找名为符号名称财产。请参阅下面的例子:
enter image description here

这是你必须在你的JSP进口使用,例如道路,在你的JSP页面的顶部:

<%@page import="org.apache.sling.tooling.support.install%> //you might have to add .* at the end to import everything 

然后还请确保您的OSGI服务的Java文件根据Adobe和其他文档进行了适当的注释和修订

相关问题