Json data using ajax submit, producing chips issues

Json data using ajax submit, we must add produces annotations, as shown below. Otherwise it will produce garbled 
one: add annotations produces
@ApiOperation (value = "Delete Log")
@RequiresPermissions ( "UPMS: log: the Delete")
@ RequestMapping (value = "/ the Delete / IDS {}", Method, = RequestMethod. the GET, Produces = "text / HTML; charset = UTF-. 8")
@ResponseBody
public Object Delete (@PathVariable ( "IDS") String IDS) {
int COUNT = upmsLogService.deleteByPrimaryKeys (IDS);
return new new UpmsResult (UpmsResultConstant.SUCCESS , COUNT);
}
method 2: springMVC-servlet.xml file tcbds-common item, add <value> file application / JSON; charset = UTF-. 8 </ value>
<!
<mvc:annotation-driven>
<mvc:message-converters>
<bean class="org.springframework.http.converter.StringHttpMessageConverter">
<property name="supportedMediaTypes">
<list>
<value>text/html;charset=UTF-8</value>
<value>application/json;charset=UTF-8</value>
</list>
</property>
</bean>
</mvc:message-converters>
</mvc:annotation-driven>

Guess you like

Origin www.cnblogs.com/nongfenggps/p/11571617.html