I'm using AEM 6.3
My servlet config is
@Component(service= Servlet.class,
property={
Constants.SERVICE_DESCRIPTION + "=Example Servlet",
"sling.servlet.methods=" + HttpConstants.METHOD_GET,
"sling.servlet.resourceTypes="+ "my-project/components/general/my-component",
"sling.servlet.extensions=" + "extension",
"sling.servlet.selectors=" + "selector"
})
As you can see I'm not using a page as a resourceType so I'm a little confused. Can anyone tell me what wil be the url to hit on browser so it runs my doGet Method. And yes My servlet works as I have tested it by giving path.