use of com.alibaba.fastjson.support.spring.annotation.ResponseJSONP in project fastjson by alibaba.
the class FastJsonViewAndJSONPControllerTest method test2.
@ResponseJSONP
@RequestMapping("test2")
@FastJsonView(exclude = { @FastJsonFilter(clazz = Company.class, props = { "id", "name" }) })
public Company test2() {
Company company = new Company();
company.setId(100L);
company.setName("测试");
company.setDescription("fastjsonview注解测试");
company.setStock("haha");
return company;
}
Aggregations