我是用IDEA直接创建SpringBoot3.0.3,、JDK17版本的项目,并写了一个控制器类:public class TestController @最后无奈,更换为Spring Boot2.7.9和JDK8,就可以成功显示:我想知道的是,为什么SpringBoot3.0.3和JDK17版本的不行,明明代码与目录结构都是一样的。
我在使用m2eclipse在Eclipse中编译项目。我在Eclipse中设置JDK路径,如下所示:
[ERROR]Perhaps you are running on a JRE rather than a JDK?Perhaps you are running on a JRE rather than a JDK?