Guns framework is the returned json format string, springboot/for springmvc default return json is null, how to get the framework of guns?
CodePudding user response:
In com. Stylefeng. Guns. Core. Config. DefaultFastjsonConfig class, to intercept fastjson configuration
ValueFilter ValueFilter=new ValueFilter () {
Public Object process (Object o, String s, Object o1) {
If (null==o1) {
O1="";
}
Return o1.
}
};
Will return to become null empty data