关于jeecg-boot:jeecgshiro排除配置

53次阅读

共计 469 个字符,预计需要花费 2 分钟才能阅读完成。

    <!--shiro-->
    <dependency>
        <groupId>org.apache.shiro</groupId>
        <artifactId>shiro-spring-boot-starter</artifactId>
        <version>1.4.0</version>
    </dependency>

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 {

正文完
 0