diff --git a/III. Using Spring Boot/19.4. Using the Gradle plugin.md b/III. Using Spring Boot/19.4. Using the Gradle plugin.md index e69de29..f2c0317 100644 --- a/III. Using Spring Boot/19.4. Using the Gradle plugin.md +++ b/III. Using Spring Boot/19.4. Using the Gradle plugin.md @@ -0,0 +1,10 @@ +### 19.4. 使用Gradle插件运行 + +Spring Boot Gradle插件也包含一个`run`目标,它可以用来以暴露的方式运行你的应用程序。不管你什么时候导入`spring-boot-plugin`,`bootRun`任务总是被添加进去。 +```shell +$ gradle bootRun +``` +你可能想使用那些有用的操作系统环境变量: +```shell +$ export JAVA_OPTS=-Xmx1024m -XX:MaxPermSize=128M -Djava.security.egd=file:/dev/./urandom +```