What stack are you on? We might be able to give you better directions?

But in general, it is standard Java Servlet / Web App configuration

Dropwizard, for example, doesn't load servlet fragments, to
programmatically it looks something like this:

        environment.servlets().addServletListeners(new
EnvironmentLoaderListener());
        environment.servlets().addFilter("ShiroFilter", ShiroFilter.class)

.addMappingForUrlPatterns(EnumSet.allOf(DispatcherType.class), false, "/*");

Which is the equivalent of the web.xml listed here:
https://shiro.apache.org/web.html#web-xml


On Mon, May 7, 2018 at 11:15 AM, ayv <[email protected]> wrote:

> Hi Brian,
>
> Thanks for the reply.
>
> I couldn't find how to configure ShiroFilter using annotations or manually
> in the doc link. I tried searching but most of the results are related to
> spring. My application does not use spring. If you can provide me any
> references/code snippets, it will be really helpful. I am a complete novice
> in shiro.
>
> Thanks much,
> Anil.
>
>
>
> --
> Sent from: http://shiro-user.582556.n2.nabble.com/
>

Reply via email to