因为新创建的工程springboot3.0 已不能用jdk1.8,只要修改pom.xml文件的spring-boot-starter-parent为旧版本2.0就正常了。 修改前: 修改后: 这样系统就可以正常运行了。