Update 19.1. Running from an IDE.md

master
qibaoguang 2015-03-20 00:42:17 +08:00
parent 9f70267c4e
commit 2f5ad00936
1 changed files with 7 additions and 0 deletions

View File

@ -0,0 +1,7 @@
### 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`按钮。