springboot集成activiti5.6 ,接口报401、403

场景

  • springboot2.X+shiro+activiti5.6整合项目
  • 博主最近在整合这类项目,结果发现整合activiti5.6后接口就不行了。连最基本的后端接口都报401。网上搜了大多是加@SpringBootApplication(exclude = {SecurityAutoConfiguration.class, org.springframework.boot.autoconfigure.security.servlet.SecurityAutoConfiguration.class})这种方式处理,但是我还真的就一直都不行这个方式

解决方式

第一步:

<dependency>
            <groupId>org.activitigroupId>
            <artifactId>activiti-modelerartifactId>
            <version>${activiti}version>
            <exclusions>
                <exclusion>
                    <artifactId>spring-security-configartifactId>
                    <groupId>org.springframework.securitygroupId>
                exclusion>
                <exclusion>
                    <artifactId>spring-security-cryptoartifactId>
                    <groupId>org.springframework.securitygroupId>
                exclusion>
                <exclusion>
                    <artifactId>spring-security-webartifactId>
                    <groupId>org.springframework.securitygroupId>
                exclusion>
                <exclusion>
                    <artifactId>spring-security-coreartifactId>
                    <groupId>org.springframework.securitygroupId>
                exclusion>
            exclusions>
        dependency>

第二步:


@SpringBootApplication(exclude = {SecurityAutoConfiguration.class,
        org.springframework.boot.autoconfigure.security.servlet.SecurityAutoConfiguration.class})

只是作为自己的踩坑点进行记录,也许也帮不上大家

你可能感兴趣的:(activiti,java,面试,Electron)