Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:2.1.4.RELEASE:........

SpringBoot 使用spring-boot-maven-plugin插件时运行出错
~~在这里插入图片描述~~
Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:2.1.4.RELEASE:run (default-cli) on project SpringBoot: Could not exec java
原因:pom.xml依赖冲突,使用application自带服务器启动,查询到详细报错信息
发现
在这里插入图片描述
Correct the classpath of your application so that it contains a single, compatible version of javax.servlet.ServletContext

请更正应用程序的类路径,使其包含单个兼容的版本javax.servlet.ServletContext

然后在pom.xml下发现确实有这个依赖
在这里插入图片描述
解决:
把这个依赖删除,重新启动就行了,

总结:仔细读报错信息,