How to exclude a URL from VaadinServlet

Hi

Currently, I am using the following

    @WebServlet(urlPatterns = "/*", asyncSupported = true)
    @VaadinServletConfiguration(ui = MyUI.class, productionMode = false)
    public static class MyUIServlet extends VaadinServlet {
    }

how to exclude a url, say “/sample.htm” from the servlet?

Hey Hamed,

as far as I know there is no passible negative url pattern. So you can either extend your urlPatterns by all possible urls excluding your eg “/sample.htm” or you have to write your own filter.

Thank you so much :slight_smile: