GitToolBoX 展示提交记录

restfultool-fix 快速搜索接口

jrebel 热部署 教程 注释:部分提前加载的静态变量可能无法生效 如:alibaba的fastJson的paseObject功能,解决方法参考:解决JRebel进行代码热加载时FastJson的JsonField的缓存无法刷新问题
java@RestController
@RequestMapping("/api")
public class SystemController {
@ApiOperation(value = "开发时清除缓存", notes = "用于开发使用JRebel时清除FastJson的对象解析Cache")
@RequestMapping(value = "/clearCache", method = RequestMethod.GET)
public String clearCache() {
SerializeConfig.getGlobalInstance().clearSerializers();
ParserConfig.getGlobalInstance().clearDeserializers();
return "";
}
}
或者
java//可以在开发环境,禁用ASM
SerializeConfig.getGlobalInstance().setAsmEnable(false);
show comment 展示注释
