原因:在项目的依赖中使用了security依赖项 “org.springframework.boot spring-boot-starter-security” 解决方案: 删除依赖 加入“@SpringBootApplication(exclude = {SecurityAutoConfiguration.class}) ”注解