Skip to content

Instantly share code, notes, and snippets.

@rotty3000
Last active October 24, 2023 05:25
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rotty3000/e39a837364e6eba6bf04 to your computer and use it in GitHub Desktop.
Save rotty3000/e39a837364e6eba6bf04 to your computer and use it in GitHub Desktop.
resources example, serving any resources in your bundle
@Component(
property = {
"osgi.http.whiteboard.resource.pattern=/kaleo/resources/*",
"osgi.http.whiteboard.resource.prefix=/",
"osgi.http.whiteboard.servlet.pattern=/kaleo/resources/*" // temporary since this was the old property
},
service = Servlet.class
)
public class DDMJsResources extends HttpServlet {
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment