whenever I visit localhost:4502/shop/category, I get a 403 forbidden error. I see that it gets to my class and path, but it throws a 403 regardless.
However, If I move the servlet to /bin/feed, I can visit it successfully without a 403 error.
Is there a way to have servlets registered at paths without having the /bin/ path in front of them?
每当我访问本地主机:4502 /shop/category,我得到一个403禁止错误。我看到它达到了我的class and path,但它无论如何抛出了403。
但是,如果我将servlet移动到/ bin / category,则可以成功访问它,而不会出现403错误。
有没有办法让Servlet在路径上注册,而不在前面有/ bin /路径?
解决方案:
在AEM中配置:如图