springboot项目报错:String cannot be resolved to a type;Implicit super constructor Object()is undefine。。。

springboot创建的项目controller报错如下
springboot项目报错:String cannot be resolved to a type;Implicit super constructor Object()is undefine。。。
1.
springboot项目报错:String cannot be resolved to a type;Implicit super constructor Object()is undefine。。。
2.
springboot项目报错:String cannot be resolved to a type;Implicit super constructor Object()is undefine。。。
————解决办法:
**项目指定的jdk和当前eclipse使用的jdk版本不一致,需要在library里更改和添加为相符合的版本
1.更改版本为jdk对应版本**
springboot项目报错:String cannot be resolved to a type;Implicit super constructor Object()is undefine。。。
点击finish
2.add library新增一条jre system library,选择对应的jdk版本
springboot项目报错:String cannot be resolved to a type;Implicit super constructor Object()is undefine。。。
springboot项目报错:String cannot be resolved to a type;Implicit super constructor Object()is undefine。。。
最后点击ok完成