jeecg,shiro排除配置

    
    
        org.apache.shiro
        shiro-spring-boot-starter
        1.4.0
    

ShiroConfig类

@Bean("shiroFilter")
    public ShiroFilterFactoryBean shiroFilter(SecurityManager securityManager) {

filterChainDefinitionMap.put("/ocrFile/upload", "anon"); //登录接口排除

调用

    @RequestMapping("uploadFile")
    public String uploadFile(@RequestBody String requestString, HttpServletRequest request, HttpServletResponse response) throws Exception {

你可能感兴趣的:(jeecg-bootshiro)