# 19.4. 使用Gradle插件运行

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

```
$ gradle bootRun
```

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

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


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://jack80342.gitbook.io/spring-boot/iii.-using-spring-boot/19.-running-your-application/19.4.-using-the-gradle-plugin.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
