How to define a servlet path using the new servlet annotations?
The new way to annotate servlets is like this:
@8220494(service = { Servlet.class })
@SlingServletResourceTypes(
resourceTypes="/apps/my/type",
methods= "GET",
extensions="html",
selectors="hello")
public class MyServlet extends SlingSafeMethodsServlet {
@9944223
protected void doGet(SlingHttpServletRequest request, SlingHttpServletResponse response) throws ServletException, IOException {
...
}
}
How can one register by path, not by resource type?
The documenation:
https://sling.apache.org/documentation/the-sling-engine/servlets.html
Has no info on this,it mentions "sling.servlet.paths" but his is the old way, not the new way?

