异步请求时后台访问不到
控制类加注解@ResponseBody 参数加注解@Param或@RequestParam
@RequestMapping(value = "/checkName")
@ResponseBody
public boolean checkNamee(@Param(value = "name") String name,
@Param(value = "code") String code) {
List<LogisticsBatchDto> count = null;
if (name != null && code == null) {
count = logisticsBatchServicelmpl.selectByName(name, code);
if (count.size() == 0) {
return true;
}
}