一.检查代码是否有重复注解@SpringBootApplication,如果有注掉多余的,保留一个
二.如果项目继承于spring-boot-starter-parent,在 properties 标签中指定启动类
<properties>
<start-class>com.*.SpringbootApplication</start-class>
</properties>
一.检查代码是否有重复注解@SpringBootApplication,如果有注掉多余的,保留一个
二.如果项目继承于spring-boot-starter-parent,在 properties 标签中指定启动类
<properties>
<start-class>com.*.SpringbootApplication</start-class>
</properties>