Home > Back-end >  Guns framework returns json format
Guns framework returns json format

Time:09-21

With framework of guns, guns to return json processing the framework? How should remove to json processing?

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
  • Related