这是由于导入的spring-boot-devtools与spring-boot包冲突的问题则需要在引入依赖的包的时候,添加excludes 排除spring-boot包里面的
<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-devtools</artifactId> <exclusions> <exclusion> <groupId>org.springframework.boot</groupId>//产生omitted for duplicate的依赖的ja对应的g <artifactId>spring-boot</artifactId>//产生omitted for duplicate的依赖jar对应的a </exclusion> <exclusion> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-autoconfigure</artifactId> </exclusion> </exclusions> </dependency>