springboot 使用main方法启动就报错,用本机tomcat启动就可以成功启动,什么原因?

图片说明

你的启动类上的@SpringBootApplication为啥后面要带参数???