【发布时间】:2019-04-11 18:22:09
【问题描述】:
我有三个项目 common-data:单独的 maven java 项目 应用程序1:弹簧启动应用程序 application-2:spring boot 应用
我想在应用程序和应用程序 2 中包含该公共数据项目作为依赖项。 但是当我在 application-1 中添加该依赖项时,spring boot 项目已启动但未运行。
http://localhost:8090/hello 这是终点:当在任何应用程序中包含公共数据的依赖项时,我得到 404 found 错误。
<dependencies>
<!-- Add typical dependencies for a web application -->
<!-- Adds Tomcat and Spring MVC, along others -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
<dependency>
<groupId>org.stocksrin</groupId>
<artifactId>stocksrin-common</artifactId>
<version>1.0.0</version>
</dependency>
</dependencies>
现在不行了
【问题讨论】:
标签: spring-boot