Polishing
This commit is contained in:
@@ -29,7 +29,8 @@ import org.springframework.util.Assert;
|
||||
/**
|
||||
* Base class for {@link org.springframework.web.client.AsyncRestTemplate}
|
||||
* and other HTTP accessing gateway helpers, defining common properties
|
||||
* such as the {@link org.springframework.http.client.AsyncClientHttpRequestFactory} to operate on.
|
||||
* such as the {@link org.springframework.http.client.AsyncClientHttpRequestFactory}
|
||||
* to operate on.
|
||||
*
|
||||
* <p>Not intended to be used directly. See
|
||||
* {@link org.springframework.web.client.AsyncRestTemplate}.
|
||||
|
||||
@@ -57,7 +57,7 @@ public class LiveBeansViewServlet extends HttpServlet {
|
||||
protected void doGet(HttpServletRequest request, HttpServletResponse response)
|
||||
throws ServletException, IOException {
|
||||
|
||||
Assert.state(this.liveBeansView != null, "No LiveBeanViews available");
|
||||
Assert.state(this.liveBeansView != null, "No LiveBeansView available");
|
||||
String content = this.liveBeansView.getSnapshotAsJson();
|
||||
response.setContentType("application/json");
|
||||
response.setContentLength(content.length());
|
||||
|
||||
Reference in New Issue
Block a user