Manifest-Version: 1.0 Bundle-ManifestVersion: 2 Bundle-SymbolicName: com.example.mybundle Bundle-Version: 1.0.0 Bundle-Activator: com.example.mybundle.Activator Web-ContextPath: /mybundle War-ContextPath: /mybundle Import-Package: javax.servlet;version="[3.1.0,4.0.0)" Export-Package: com.example.mybundle.servlet package com.example.mybundle; import javax.servlet.Servlet; import org.osgi.framework.BundleActivator; import org.osgi.framework.BundleContext; public class Activator implements BundleActivator { @Override public void start(BundleContext context) throws Exception { Servlet myServlet = new MyServlet(); context.registerService(Servlet.class.getName(), myServlet, null); } @Override public void stop(BundleContext context) throws Exception { } } osgi.http.port=8080 osgi.http.host=127.0.0.1


上一篇:
下一篇:
切换中文