change code

This commit is contained in:
Looly 2021-06-26 09:37:16 +08:00
parent 3203f7d750
commit 8b0357da18

View File

@ -4,7 +4,7 @@ import cn.hutool.json.JSON;
/**
* 序列化接口通过实现此接口实现自定义的对象转换为JSON的操作
*
*
* @param <T> JSON类型可以是JSONObject或者JSONArray
* @param <V> 对象类型
* @author Looly
@ -15,7 +15,7 @@ public interface JSONSerializer<T extends JSON, V> {
/**
* 序列化实现通过实现此方法将指定类型的对象转换为{@link JSON}对象<br>
* 转换后的对象可以为JSONObject也可以为JSONArray首先new一个空的JSON然后将需要的数据字段put到JSON对象中去即可
*
*
* @param json JSON可以为JSONObject或者JSONArray
* @param bean 指定类型对象
*/