Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Well, i finally figured out reason for the faliure, It is a indeed a verfy funny solution. What i did was changed the order of the beans of <code>messagesConverters</code>of <code>restTemplate</code> bean.</p> <p>Earlier it was,</p> <pre><code>&lt;bean id="restTemplate" class="org.springframework.web.client.RestTemplate"&gt; </code></pre> <p> </p> <pre><code>&lt;property name="messageConverters"&gt; &lt;list&gt; &lt;bean id="jsonViewResolver" class="org.springframework.http.converter.json.MappingJacksonHttpMessageConverter" &gt; &lt;property name="objectMapper" ref="JacksonObjectMapper" /&gt; &lt;property name="supportedMediaTypes"&gt; &lt;list&gt; &lt;bean class="org.springframework.http.MediaType"&gt; &lt;constructor-arg value="application" /&gt; &lt;constructor-arg value="json" /&gt; &lt;constructor-arg value="#{T(java.nio.charset.Charset).forName('UTF-8')}"/&gt; &lt;/bean&gt; &lt;/list&gt; &lt;/property&gt; &lt;/bean&gt; &lt;bean class="org.springframework.http.converter.FormHttpMessageConverter" /&gt; &lt;bean class="org.springframework.http.converter.StringHttpMessageConverter" /&gt; &lt;/list&gt; &lt;/property&gt; </code></pre> <p></p> <p>and i changed it to following order,</p> <pre><code>&lt;bean id="restTemplate" class="org.springframework.web.client.RestTemplate"&gt; &lt;constructor-arg ref="httpClientFactory"/&gt; &lt;property name="messageConverters"&gt; &lt;list&gt; &lt;bean class="org.springframework.http.converter.FormHttpMessageConverter" /&gt; &lt;bean class="org.springframework.http.converter.StringHttpMessageConverter" /&gt; &lt;bean id="jsonViewResolver" class="org.springframework.http.converter.json.MappingJacksonHttpMessageConverter" &gt; &lt;property name="objectMapper" ref="JacksonObjectMapper" /&gt; &lt;property name="supportedMediaTypes"&gt; &lt;list&gt; &lt;bean class="org.springframework.http.MediaType"&gt; &lt;constructor-arg value="application" /&gt; &lt;constructor-arg value="json" /&gt; &lt;constructor-arg value="#{T(java.nio.charset.Charset).forName('UTF-8')}"/&gt; &lt;/bean&gt; &lt;/list&gt; &lt;/property&gt; &lt;/bean&gt; &lt;/list&gt; &lt;/property&gt; &lt;/bean&gt; </code></pre> <p>and it worked. Isn't it a funny solution?</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload