我是用IDEA直接创建SpringBoot3.0.3,、JDK17版本的项目,并写了一个控制器类:public class TestController @最后无奈,更换为Spring Boot2.7.9和JDK8,就可以成功显示:我想知道的是,为什么SpringBoot3.0.3和JDK17版本的不行,明明代码与目录结构都是一样的。
junit-rt.jar;E:\programming\software\idea\IntelliJ IDEA 2019.2.4\plugins\junit\lib\junit5-rt.jar;F:\javaweb\Springboot\springboot_jpa\target\test-classes;F:\javaweb\Springboot\springboot_jpa\target\classes;E:\programming\springboot_jpa\target\test-classes
Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'b