mirror of
https://github.com/wahyd4/pinpoint.git
synced 2026-08-17 16:56:15 +10:00
[강운덕] [WEB-95] 오타 수정. MappingJackson2JsonpView의 CONTENT_TYPE 을 application/jsonp로 수정. spring의 xml 정리.
git-svn-id: http://svn.bds.nhncorp.com/pe/hippo-web/trunk@3565 84d0f5b1-2673-498c-a247-62c4ff18d310
This commit is contained in:
@@ -134,7 +134,7 @@ public class ScatterChartController {
|
||||
} else {
|
||||
resultRange = new Range(limitedScanResult.getLimitedTime(), range.getTo());
|
||||
}
|
||||
return createModelAndVeiw(resultRange, jsonpCallback, scatterData);
|
||||
return createModelAndView(resultRange, jsonpCallback, scatterData);
|
||||
}
|
||||
|
||||
private ModelAndView selectScatterData(String applicationName, Range range, int limit, String jsonpCallback) {
|
||||
@@ -146,10 +146,10 @@ public class ScatterChartController {
|
||||
} else {
|
||||
resultRange = new Range(scatterData.get(scatterData.size() - 1).getAcceptedTime(), range.getTo());
|
||||
}
|
||||
return createModelAndVeiw(resultRange, jsonpCallback, scatterData);
|
||||
return createModelAndView(resultRange, jsonpCallback, scatterData);
|
||||
}
|
||||
|
||||
private ModelAndView createModelAndVeiw(Range range, String jsonpCallback, List<Dot> scatterData) {
|
||||
private ModelAndView createModelAndView(Range range, String jsonpCallback, List<Dot> scatterData) {
|
||||
ModelAndView mv = new ModelAndView();
|
||||
mv.addObject("resultFrom", range.getFrom());
|
||||
mv.addObject("resultTo", range.getTo());
|
||||
|
||||
@@ -32,7 +32,7 @@ public class MappingJackson2JsonpView extends MappingJackson2JsonView {
|
||||
/**
|
||||
* Default content type. Overridable as bean property.
|
||||
*/
|
||||
public static final String DEFAULT_CONTENT_TYPE = "application/json";
|
||||
public static final String DEFAULT_CONTENT_TYPE = "application/jsonp";
|
||||
|
||||
|
||||
private ObjectMapper objectMapper = new ObjectMapper();
|
||||
|
||||
@@ -42,18 +42,16 @@
|
||||
<property name="suffix" value=".jsp" />
|
||||
</bean>
|
||||
|
||||
<bean id="unwrapRootJsonObjectMapper" class="com.nhn.pinpoint.web.util.UnwrapRootJackson2ObjectMapper"/>
|
||||
|
||||
|
||||
<bean class="org.springframework.web.servlet.mvc.annotation.DefaultAnnotationHandlerMapping" />
|
||||
<bean class="org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter" />
|
||||
|
||||
<mvc:interceptors>
|
||||
<bean id="webContentInterceptor" class="org.springframework.web.servlet.mvc.WebContentInterceptor">
|
||||
<property name="cacheSeconds" value="0"/>
|
||||
<property name="useExpiresHeader" value="true"/>
|
||||
<property name="useCacheControlHeader" value="true"/>
|
||||
<property name="useCacheControlNoStore" value="true"/>
|
||||
</bean>
|
||||
<bean id="webContentInterceptor" class="org.springframework.web.servlet.mvc.WebContentInterceptor">
|
||||
<property name="cacheSeconds" value="0"/>
|
||||
<property name="useExpiresHeader" value="true"/>
|
||||
<property name="useCacheControlHeader" value="true"/>
|
||||
<property name="useCacheControlNoStore" value="true"/>
|
||||
</bean>
|
||||
</mvc:interceptors>
|
||||
</beans>
|
||||
Reference in New Issue
Block a user