> For the complete documentation index, see [llms.txt](https://jack80342.gitbook.io/spring-boot/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://jack80342.gitbook.io/spring-boot/iii.-using-spring-boot/19.-running-your-application/19.1.-running-from-an-ide.md).

# 19.1. 从IDE中运行

你可以从IDE中运行Spring Boot应用，就像一个简单的Java应用。但首先需要导入项目。导入步骤取决于你的IDE和构建系统，大多数IDEs能够直接导入Maven项目。例如Eclipse用户可以选择`File`菜单的`Import…` --> `Existing Maven Projects`。

如果不能直接将项目导入IDE，你可以使用构建系统生成IDE的元数据。Maven有针对[Eclipse](http://maven.apache.org/plugins/maven-eclipse-plugin/)和[IDEA](http://maven.apache.org/plugins/maven-idea-plugin/)的插件。Gradle为[各种IDEs](http://www.gradle.org/docs/current/userguide/ide_support.html)提供插件。

**注** 如果意外地多次运行一个web应用，你将看到一个"端口已被占用"的错误。STS用户可以使用`Relaunch`而不是`Run`按钮，以确保任何存在的实例是关闭的。
