spring-boot/spring-boot-samples/spring-boot-sample-actuator
Phillip Webb dbec81cabe Disable jmx by default
Change JmxAutoConfiguration so that by default JMX exposure is not
enabled. This matches the Javdoc text.
2013-12-18 22:32:39 -08:00
..
src Disable jmx by default 2013-12-18 22:32:39 -08:00
build.gradle Add build.gradle samples and rename runJar->bootRun 2013-12-10 11:10:04 +00:00
pom.xml Add log4j starter and some documentation 2013-12-16 17:26:53 +00:00
README.md Add build.gradle samples and rename runJar->bootRun 2013-12-10 11:10:04 +00:00
start.groovy Ops -> Actuator 2013-07-31 13:20:26 -07:00

Spring Boot Actuator Sample

You can build this sample using Maven (>3) or Gradle (1.6).

With Maven:

$ mvn package
$ java -jar target/*.jar

Then access the app via a browser (or curl) on http://localhost:8080 (the user name is "user" and look at the INFO log output for the password to login).

With gradle:

$ gradle build
$ java -jar build/libs/*.jar

The gradle build contains an intentionally odd configuration to exclude the security dependencies from the executable JAR. So the app run like this behaves differently than the one run from the Maven-built JAR file. See comments in the build.gradle for details.