swagger2的url被shiro拦截

//test测试免拦截
filterChainDefinitionMap.put("/test/hello", "anon");
filterChainDefinitionMap.put("/test/guest", "anon");
filterChainDefinitionMap.put("/test/authn", "anon");
filterChainDefinitionMap.put("/test/user", "anon");
filterChainDefinitionMap.put("/test/mvnInstall", "anon");
filterChainDefinitionMap.put("/test/gradleBuild", "anon");
filterChainDefinitionMap.put("/test/js", "anon");

//swagger2免拦截
filterChainDefinitionMap.put("/swagger-ui.html**", "anon");
filterChainDefinitionMap.put("/v2/api-docs", "anon");
filterChainDefinitionMap.put("/swagger-resources/**", "anon");
filterChainDefinitionMap.put("/webjars/**", "anon");

你可能感兴趣的:(swagger2的url被shiro拦截)