bboss mvc json plugin set date type format method

The bboss mvc json plugin sets the date type format method.

General json requests all return date type data. The bboss mvc json plugin converts the date type data to long integer data by default without specifying the date format dateformat. The global date conversion format can be formulated in the following ways:

Modify the bboss-mvc.xml configuration, the example is as follows:
<property class="org.frameworkset.http.converter.json.MappingJacksonHttpMessageConverter">
     				<property name="objectMapper" class="com.fasterxml.jackson.databind.ObjectMapper">
     					<property name="dateFormat" class="java.text.SimpleDateFormat">
     						<construction>  
				            <property value="yyyy-MM-dd HH:mm:ss"/>
				        </construction>
     					</property>
     				</property>
     			</property>

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326629415&siteId=291194637