I have created a Sling servlet and I need to register it using some custom path, e.g, /aem/testServlet
If I add this execution path entry in configuration "Apache Sling Servlet/Script Resolver and Error Handler", it works fine. But I need to create a custom configuration of this path for my project so that it can be deployed with the code.
Can anyone please help with this.
You can create a OSGI Config and include in ur codebase.
with ur custom paths under servletresolver.paths
I have already created this custom config and added the execution paths. But still it's picking up the OOTB SlingServletResolver, and my execution path is not getting registered.