There are two possibilities
- Your source directory is not in the right location (use the sourceSets directive to fix this. your source directory should resemble something like
src/main/java/your/package
) -
Add this to indicate where your main class is
springBoot { mainClass = "hello.FileUploader" }
I am pretty sure it is 1.