I have set up a spring boot project using the Spring Initializer, I tried several times to create a new project or play with the dependencies, everything seems to be in plac
When you run your application as an jar, your Manifest.MF file should know which class has the main method.
Manifest.MF
To add this information when SpringBoot compiles your code, add start-class property on your pom file.
start-class
E.g.:
com.example.DemoApplication