1.新建一个springboot项目,选择gradle管理
2.gradle添加以下依赖,gradle版本7.4
dependencies {
// https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-starter-web
implementation 'org.springframework.boot:spring-boot-starter-web:2.6.6'
// https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-starter
implem