Create an XML file with name
org.apache.sling.servlets.resolver.SlingServletResolver in config
folder.Add servletresolver.paths property with your custom paths as
specified below.
Note: If you have already configured this manually in config manager
console, and later trying to configure through code will not work. As,
AEM tries to read from system rather from config folder.In this case you
have to delete the paths created in the CRX and then the paths will get
configured through config folder.