按照B站上面springboot(黑马程序员)学习,见图片
新建一个spring initializr项目时
这里3.0.5版本报错,改为2.7.6
运行日志截图
. ____ _ __ _ _
/\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
\\/ ___)| |_)| | | | | || (_| | ) ) ) )
' |____| .__|_| |_|_| |_\__, | / / / /
=========|_|==============|___/=/_/_/_/
:: Spring Boot :: (v2.7.6)
2023-03-25 11:34:01.096 INFO 11304 --- [ main] com.example.FirstApplicationTests : Starting FirstApplicationTests using Java 1.8.0_201 on PC-202301090337 with PID 11304 (started by Administrator in E:\code\Java\idea\SpringBoot\First)
2023-03-25 11:34:01.097 INFO 11304 --- [ main] com.example.FirstApplicationTests : No active profile set, falling back to 1 default profile: "default"
2023-03-25 11:34:02.585 INFO 11304 --- [ main] com.example.FirstApplicationTests : Started FirstApplicationTests in 1.784 seconds (JVM running for 2.873)