Polish
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
# Spring Boot Actuator Sample
|
||||
|
||||
You can build this sample using Maven (>3) or Gradle (1.6).
|
||||
You can build this sample using Maven (>3) or Gradle (1.6).
|
||||
|
||||
With Maven:
|
||||
|
||||
@@ -9,7 +8,8 @@ $ 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).
|
||||
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:
|
||||
|
||||
@@ -18,4 +18,6 @@ $ 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.
|
||||
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.
|
||||
|
||||
@@ -16,8 +16,6 @@
|
||||
|
||||
package org.springframework.boot.sample.actuator.log4j;
|
||||
|
||||
import static org.junit.Assert.assertEquals;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.util.Map;
|
||||
import java.util.concurrent.Callable;
|
||||
@@ -36,6 +34,8 @@ import org.springframework.http.client.ClientHttpResponse;
|
||||
import org.springframework.web.client.DefaultResponseErrorHandler;
|
||||
import org.springframework.web.client.RestTemplate;
|
||||
|
||||
import static org.junit.Assert.assertEquals;
|
||||
|
||||
/**
|
||||
* Basic integration tests for service demo application.
|
||||
*
|
||||
@@ -77,7 +77,6 @@ public class SampleActuatorApplicationTests {
|
||||
assertEquals("Hello Phil", body.get("message"));
|
||||
}
|
||||
|
||||
|
||||
private RestTemplate getRestTemplate() {
|
||||
RestTemplate restTemplate = new RestTemplate();
|
||||
restTemplate.setErrorHandler(new DefaultResponseErrorHandler() {
|
||||
|
||||
@@ -27,7 +27,7 @@ interface ReviewRepository extends Repository<Review, Long> {
|
||||
Page<Review> findByHotel(Hotel hotel, Pageable pageable);
|
||||
|
||||
Review findByHotelAndIndex(Hotel hotel, int index);
|
||||
|
||||
|
||||
Review save(Review review);
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user