使用apply plugin: ‘org.springframework.boot’ build必须要指定main class
BUILD FAILED in 1s
3 actionable tasks: 1 executed, 2 up-to-date
Main class name has not been configured and it could not be resolved
项目中的build.gradle文件去掉这个配置即可
apply plugin: 'org.springframework.boot'