【发布时间】:2015-04-01 17:54:48
【问题描述】:
我正在使用 spring 和 maven 开发一个 webapp,并且希望能够从本地 tomcat 服务器和 intellij 中运行该应用程序。这种依赖似乎是罪魁祸首。
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-tomcat</artifactId>
<scope>provided</scope>
</dependency>
当我删除此依赖项时,应用程序在 intellij 中运行良好,因为存在其他依赖项,但随后无法在 tomcat 上运行。
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
我可以设置一些东西来自动为 intellij 使用正确的依赖项吗?
【问题讨论】:
标签: spring maven tomcat intellij-idea