解决办法
在启动类前的@SpringBootApplication注解中加入exclude属性SecurityAutoConfiguration和ManagementWebSecurityAutoConfiguration,以排除安全认证
@SpringBootApplication(exclude = {SecurityAutoConfiguration.class,ManagementWebSecurityAutoConfiguration.class})@MapperScan(basePackages = {"com.besttone.mapper"})public class BasedataInterfaceApplication {public static void main(String[] args) {SpringApplication.run(BasedataInterfaceApplication.class, args);}}