This commit is contained in:
Phillip Webb
2014-10-28 16:34:57 -07:00
parent 466ed469eb
commit d17b7c8195
19 changed files with 131 additions and 116 deletions

View File

@@ -374,6 +374,7 @@ content into your application; rather pick only the properties that you need.
endpoints.health.id=health
endpoints.health.sensitive=false
endpoints.health.enabled=true
endpoints.health.time-to-live=1000
endpoints.info.id=info
endpoints.info.sensitive=false
endpoints.info.enabled=true

View File

@@ -1564,28 +1564,29 @@ would only ever be a development time trick probably).
[[howto-reload-springloaded-maven]]
==== Configuring Spring Loaded for use with Maven
To use Spring Loaded with the Maven command line, just add it as a dependency in the
To use Spring Loaded with the Maven command line, just add it as a dependency in the
Spring Boot plugin declaration, e.g.
.pom.xml
[source,xml,indent=0]
----
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<dependencies>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>springloaded</artifactId>
<version>1.2.0.RELEASE</version>
</dependency>
</dependencies>
</plugin>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<dependencies>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>springloaded</artifactId>
<version>1.2.0.RELEASE</version>
</dependency>
</dependencies>
</plugin>
----
This normally works pretty well with Eclipse and IntelliJ as long as
they have their build configuration aligned with the Maven defaults
(Eclipse m2e does this out of the box).
This normally works pretty well with Eclipse and IntelliJ as long as they have their
build configuration aligned with the Maven defaults (Eclipse m2e does this out of the
box).
[[howto-reload-springloaded-gradle-and-intellij]]
==== Configuring Spring Loaded for use with Gradle and IntelliJ

View File

@@ -94,26 +94,30 @@ Here is an example "`hello world`" web application written in Groovy:
}
----
Then
To compile and run the application type:
[indent=0,subs="verbatim,quotes,attributes"]
----
$ spring run hello.groovy
$ spring run hello.groovy
----
To pass command line arguments to the application, you need to use a
"--" to separate them from the "spring" command arguments, e.g.
To pass command line arguments to the application, you need to use a `--` to separate
them from the "`spring`" command arguments, e.g.
[indent=0,subs="verbatim,quotes,attributes"]
----
$ spring run hello.groovy -- --server.port=9000
$ spring run hello.groovy -- --server.port=9000
----
and to set JVM command line arguments you can use the `JAVA_OPTS`
environment variable, e.g.
To set JVM command line arguments you can use the `JAVA_OPTS` environment variable, e.g.
[indent=0,subs="verbatim,quotes,attributes"]
----
$ JAVA_OPTS=-Xmx1024m spring run hello.groovy
$ JAVA_OPTS=-Xmx1024m spring run hello.groovy
----
[[cli-install-uninstall]]
=== Adding dependencies to the CLI
You can add dependencies to the CLI using the `install` command. The command takes one