Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I've fixed my problem. So for reference to others with a similar problem.</p> <p>I've deleted the following elements in the spring context config xml:</p> <pre><code>&lt;mvc:annotation-driven/&gt; </code></pre> <p>and</p> <pre><code>&lt;bean class="org.springframework.beans.factory.config.MethodInvokingFactoryBean"&gt; &lt;property name="targetObject" ref="jacksonSerializationConfig" /&gt; &lt;property name="targetMethod" value="setDateFormat" /&gt; &lt;property name="arguments"&gt; &lt;list&gt; &lt;value type="java.text.SimpleDateFormat"&gt;yyyy-MM-dd'T'HH:mm:ss.SSSZ&lt;/value&gt; &lt;/list&gt; &lt;/property&gt; </code></pre> <p></p> <p>Then I added the following:</p> <pre><code>&lt;bean class="org.springframework.web.servlet.mvc.annotation.DefaultAnnotationHandlerMapping"&gt; &lt;property name="order" value="1" /&gt; &lt;/bean&gt; </code></pre> <p>and changed the following:</p> <pre><code>&lt;bean class="org.springframework.beans.factory.config.MethodInvokingFactoryBean"&gt; &lt;property name="targetObject" ref="jacksonSerializationConfig" /&gt; &lt;property name="targetMethod" value="enable" /&gt; &lt;property name="arguments"&gt; &lt;list&gt; &lt;value type="org.codehaus.jackson.map.SerializationConfig.Feature"&gt;WRITE_DATES_AS_TIMESTAMPS&lt;/value&gt; &lt;/list&gt; &lt;/property&gt; </code></pre> <p></p> <p>in</p> <pre><code>&lt;bean class="org.springframework.beans.factory.config.MethodInvokingFactoryBean"&gt; &lt;property name="targetObject" ref="jacksonSerializationConfig" /&gt; &lt;property name="targetMethod" value="disable" /&gt; &lt;property name="arguments"&gt; &lt;list&gt; &lt;value type="org.codehaus.jackson.map.SerializationConfig.Feature"&gt;WRITE_DATES_AS_TIMESTAMPS&lt;/value&gt; &lt;/list&gt; &lt;/property&gt; </code></pre> <p></p> <p>After this Spring was able to serialize my date into json as a ISO date.</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. 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