第一次springboot项目运行出错总结
2019-02-26 14:16
966 查看
以前开发项目,第一反应就是给项目配置jdk,以及tomcat。然而刚接触springboot后,第一个springboot项目一直运行不起来。然后感谢 https://www.geek-share.com/detail/2758981428.html 找到了解决方法,以下是错误 . ____ _ __ _ _ /\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \ ( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \ \\/ ___)| |_)| | | | | || (_| | ) ) ) ) ' |____| .__|_| |_|_| |_\__, | / / / / =========|_|==============|___/=/_/_/_/ :: Spring Boot :: (v2.1.3.RELEASE) 2019-02-26 14:06:26.024 INFO 2768 --- [ main] com.example.demo.DemoApplication : Starting DemoApplication on PC-20180725RGPQ with PID 2768 (D:\Downloads\demo\target\classes started by Administrator in D:\Downloads\demo) 2019-02-26 14:06:26.027 INFO 2768 --- [ main] com.example.demo.DemoApplication : No active profile set, falling back to default profiles: default 2019-02-26 14:06:27.004 WARN 2768 --- [ main] ConfigServletWebServerApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.context.ApplicationContextException: Unable to start web server; nested exception is java.lang.NoSuchMethodError: org.apache.coyote.AbstractProtocol.setAcceptCount(I)V 2019-02-26 14:06:27.013 INFO 2768 --- [ main] ConditionEvaluationReportLoggingListener : Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled. 2019-02-26 14:06:27.022 ERROR 2768 --- [ main] o.s.b.d.LoggingFailureAnalysisReporter : *************************** APPLICATION FAILED TO START *************************** Description: An attempt was made to call the method org.apache.coyote.AbstractProtocol.setAcceptCount(I)V but it does not exist. Its class, org.apache.coyote.AbstractProtocol, is available from the following locations: jar:file:/E:/MyEclipse2017CI/plugins/com.genuitec.eclipse.server.embedded.tomcat.core_13.0.0.me201612211440/tomcat85/lib/tomcat-coyote.jar!/org/apache/coyote/AbstractProtocol.class jar:file:/D:/maven/repo/org/apache/tomcat/embed/tomcat-embed-core/9.0.16/tomcat-embed-core-9.0.16.jar!/org/apache/coyote/AbstractProtocol.class It was loaded from the following location: file:/E:/MyEclipse2017CI/plugins/com.genuitec.eclipse.server.embedded.tomcat.core_13.0.0.me201612211440/tomcat85/lib/tomcat-coyote.jar Action: Correct the classpath of your application so that it contains a single, compatible version of org.apache.coyote.AbstractProtocol
将buildpath中的tomcat配置remove掉就好了
运行成功
相关文章推荐
- spring boot项目打包成war并在tomcat上运行的步骤
- Spring Boot 直接用jar运行项目的方法
- 快速构建可运行的Spring-boot项目(Hello World)
- 创建Spring Boot项目的几种方式总结(推荐)
- docker运行基于springboot的web项目
- SpringBoot项目运行报错
- spring boot项目打包成war并在tomcat上运行的步骤
- ranong项目总结-Spring Boot Actuator(二)
- spring boot项目打包成war并在tomcat上运行
- Springboot项目开发总结
- SpringBoot 项目如何在tomcat容器中运行
- 第一次使用spring-boot总结
- spring boot项目打包成war并在tomcat上运行的步骤
- 快速构建可运行的Spring-boot项目(Hello World)
- spring boot项目以jar包运行
- 把 spring-boot 项目打包成可运行的 jar 包
- SpringBoot项目在新电脑上的配置运行,包括JDK+MAVEN+Git+SpringBoot配置等
- Spring Boot 探索之旅(三)——Boot项目启动运行原理
- 从零开始通过idea插件将一个spring boot项目部署到docker容器里运行
- 快速构建可运行的Spring-boot项目(Hello World)