有两个项目:
我现在将system项目作为依赖,放在了cloud-system-starter项目中,但是在运行cloud-system-starter时,404错误,提示找不到localhost:7002/login;
system: pom.xml
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<!-- 微服务为true,单体项目为false -->
<skip>true</skip>
</configuration>
</plugin>
</plugins>
</build>
cloud-system-starter: pom.xml
<dependencies>
<dependency>
<groupId>com.cloud</groupId>
<artifactId>system</artifactId>
<version>1.0.0-SNAPSHOT</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
</plugins>
</build>
希望在system单体项目中开发的api可以直接在cloud-system-starter中使用,无需再开发微服务版本的api
把api的依赖写进system pom就行 有啥来问我