401 problems occurred when ruoyi microservice framework integrated activiti7

When using ruoyi’s microservice framework to integrate activiti7, a 401 problem with no permission occurred after the integration. After searching for a long time, I thought it was a configuration problem, and finally found this in the issue: so I removed it in maven, and found that it still didn’t work
insert image description here
. After Baidu chooses to modify it in the application startup class, the code is as follows:

package com.ruoyi.activiti;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.actuate.autoconfigure.security.servlet.ManagementWebSecurityAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import com.ruoyi.common.security.annotation.EnableCustomConfig;
import com.ruoyi.common.security.annotation.EnableRyFeignClients;
import com.ruoyi.common.swagger.annotation.EnableCustomSwagger2;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.boot.autoconfigure.security.servlet.SecurityAutoConfiguration;

/**
 * 工作流模块
 *
 * @author ruoyi
 */
@EnableCustomConfig
@EnableCustomSwagger2
@EnableRyFeignClients
@SpringBootApplication(exclude = {
    
    SecurityAutoConfiguration.class, ManagementWebSecurityAutoConfiguration.class})
public class RuoYActivitiApplication {
    
    
    public static void main(String[] args) {
    
    
        SpringApplication.run(RuoYActivitiApplication.class, args);
        System.out.println("(♥◠‿◠)ノ゙  工作流模块启动成功");
    }
}

Note that you need to exclude SecurityAutoConfiguration and ManagementWebSecurityAutoConfiguration, otherwise you need to rewrite the configuration class in the config directory, refer to:
Springboot integrates activiti7 (excluding springSecurity version)

Guess you like

Origin blog.csdn.net/geshi201028/article/details/118015644