What do your annotations look like ?

On Tue, Jun 27, 2017 at 3:33 AM, Yu Wei <[email protected]> wrote:

> Hi guys,
>
> Should shiro annotations work with spring controller or spring services?
>
> When I configured filters in applicationContext.xml as below, everything
> works well.
>
> <property name="filters">
>             <util:map>
>                 <entry key="authc">
>                     <bean class="org.apache.shiro.web.filter.authc.
> PassThruAuthenticationFilter"/>
>                 </entry>
>             </util:map>
>         </property>
>         <property name="filterChainDefinitions">
>             <value>
>                 /school/** = authc
>                 /user/** = authc, roles[888888]
>                 /role/** = authc, roles[888888]
>                 /permission/** = authc, roles[888888]
>                 /** = anon
>             </value>
>         </property>
>
>
> However, when I use the annotations in java code, it doesn't work.
>
>
> Do I missed anything? Any advice?
>
>
>
> Thanks,
>
> Jared, (韦煜)
> Software developer
> Interested in open source software, big data, Linux
>

Reply via email to