记录日志到日志文件(实体类转JSON字符串)

在本地 \home\ruoyi\logs\sys-info.log日志文件中记录

private static final Logger log = LoggerFactory.getLogger(TbReceivetelegramServiceImpl.class);

@Override
public int updateTbReceivetelegram(TbReceivetelegram tbReceivetelegram) {
    log.info(JSONObject.toJSONString(tbReceivetelegram));
    return tbReceivetelegramMapper.updateTbReceivetelegram(tbReceivetelegram);
}

你可能感兴趣的:(笔记,json,java,开发语言)