如果一个springboot项目作为依赖使用时,应满足下面两个条件:
1.整个项目中不包含项目启动类(包含main方法的xxxApplication类)
2.pom.xml中去掉这个插件:
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
重新clean install 依赖
如果一个springboot项目作为依赖使用时,应满足下面两个条件:
1.整个项目中不包含项目启动类(包含main方法的xxxApplication类)
2.pom.xml中去掉这个插件:
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
重新clean install 依赖