idea springboot helloworld出错
2018-03-28 13:41
477 查看
idea springboot helloworld出错
eclipse实在太卡了太难用了,装了intellj idea,配置环境,出了两个错误:1、
java.lang.NoClassDefFoundError: org/springframework/expression/ParserContext
对应jar包下载失败,重新下载。若存在该jar包,一般里面是没有内容的,删除它,重新下载;
2、报错信息如下:
org.springframework.context.ApplicationContextException: Unable to start web server; nested exception is org.springframework.context.ApplicationContextException: Unable to start ServletWebServerApplicationContext due to missing ServletWebServerFactory bean.
at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.onRefresh(ServletWebServerApplicationContext.java:155) ~[spring-boot-2.0.0.RELEASE.jar:2.0.0.RELEASE]
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:543) ~[spring-context-5.0.4.RELEASE.jar:5.0.4.RELEASE]
at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:140) ~[spring-boot-2.0.0.RELEASE.jar:2.0.0.RELEASE]
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:752) [spring-boot-2.0.0.RELEASE.jar:2.0.0.RELEASE]
at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:388) [spring-boot-2.0.0.RELEASE.jar:2.0.0.RELEASE]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:327) [spring-boot-2.0.0.RELEASE.jar:2.0.0.RELEASE]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1246) [spring-boot-2.0.0.RELEASE.jar:2.0.0.RELEASE]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1234) [spring-boot-2.0.0.RELEASE.jar:2.0.0.RELEASE]
at vip.linko.is.IsApplication.main(IsApplication.java:10) [classes/:na]
Caused by: org.springframework.context.ApplicationContextException: Unable to start ServletWebServerApplicationContext due to missing ServletWebServerFactory bean.
at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.getWebServerFactory(ServletWebServerApplicationContext.java:204) ~[spring-boot-2.0.0.RELEASE.jar:2.0.0.RELEASE]
at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.createWebServer(ServletWebServerApplicationContext.java:178) ~[spring-boot-2.0.0.RELEASE.jar:2.0.0.RELEASE]
at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.onRefresh(ServletWebServerApplicationContext.java:152) ~[spring-boot-2.0.0.RELEASE.jar:2.0.0.RELEASE]
… 8 common frames omitted
版本写错了,将
org.springframework.boot
spring-boot-starter-parent
2.0.0.RELEASE
改成
org.springframework.boot
spring-boot-starter-parent
1.5.10.RELEASE
相关文章推荐
- idea+maven+springboot hello world
- U-boot-1.1.4中关于hello_world.srec出错
- hello World Spring Boot
- Eclipse使用maven搭建简单spring boot application Hello World
- 1.1 使用IntelliJ IDEA搭建Spring-Boot的"Hello World"项目
- IDEA建立Spring MVC Hello World 详细入门教程
- springboot开发 第一个案例之hello,world!
- SpringBoot HelloWorld
- SpringBoot Helloworld 测试 Maven项目
- SpringBoot HelloWorld
- SpringBoot学习之hello world
- U-boot-1.1.4中关于hello_world.srec出错
- springboot Hello World
- Eclipse搭建SpringBoot之HelloWorld
- U-boot-1.1.4中关于hello_world.srec出错 分类: DSP arm-linux-Ubuntu 2013-07-22 16:29 352人阅读 评论(0) 收藏
- spring boot 初试,springboot入门,springboot helloworld例子
- Spring Boot Hello World (使用Eclipse IDE)
- Spring Boot实践教程(一):Hello,world!
- SpringBoot(二):初识SpringBoot HelloWorld