> 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.4.-using-the-gradle-plugin.md).

# 19.4. 使用Gradle插件运行

Spring Boot Gradle插件也包含一个`bootRun`任务，可用来运行你的应用程序。无论你何时应用 `org.springframework.boot`和`java plugins`，`bootRun`任务总会被添加进去。

```
$ gradle bootRun
```

你可能还会想使用操作系统环境变量`JAVA_OPTS`：

```
$ export JAVA_OPTS=-Xmx1024m
```
