Open user20161119 opened 10 years ago
and i can not useing @ResponseBody annotation to convert object to json,i add jackjson jar in my classpath like in your pom.xml
@RequestMapping(value="test",produces={"application/json"})
public @ResponseBody FBUser json(HttpServletRequest request,HttpServletResponse response){
/*
CustomerUser cusUser = null;
if(cusUser == null){
cusUser = new CustomerUser();
cusUser.setStrCusrName("hailiang");
}
request.setAttribute("userInfo", cusUser);*/
FBUser fu = new FBUser();
fu.setUserEmail("abc");
return fu;
}
i use:
<property name="favorPathExtension" value="false"/>
and your demo project is not working
i use the follow mvc config,but the mvc:interceptores not working,i google it,and most answers told that not use
i want to the internal reason,thanks