Here it is:
    @Bean(name = "shiroFilter")
    public ShiroFilterFactoryBean shiroFilter() {
        ShiroFilterFactoryBean shiroFilter = new ShiroFilterFactoryBean();
        shiroFilter.setSecurityManager(securityManager());
        ,,,,
        Map<String, Filter> filters = new HashMap<>();
        ....
        filters.put("tokenLogout", TokenLogoutFilter());
        shiroFilter.setFilters(filters);

        return shiroFilter;
    }

Thanks for your support very much.

Guofeng

On Wed, Dec 21, 2016 at 1:26 AM, Brian Demers <[email protected]>
wrote:

> Can you include your configuration ?
>
> On Mon, Dec 19, 2016 at 5:43 PM, Guofeng Zhang <[email protected]>
> wrote:
>
>> That's my fault. I should derive from PathMatchingFilter and give it a
>> url pattern by setFilterChainDefinitionMap, then it works as expected.
>>
>> But I still cannot understand why this filter is invoked even if I do not
>> add it to filterChainDefinitionMap.
>>
>> Thanks for your response very much.
>>
>> Guofeng
>>
>>
>

Reply via email to