springboot project to install when the local repository, and can not be referenced by other projects solutions to problems

If a project as a dependency springboot use, should satisfy the following two conditions:

1. items not included in the project start classes (xxxApplication class contains the main method)

2.pom.xml remove this plug-in:

<plugin>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-maven-plugin</artifactId>
</plugin>

Re-clean install dependence

Published 39 original articles · won praise 13 · views 2302

Guess you like

Origin blog.csdn.net/weixin_45612794/article/details/103686443