Releases: noear/snack3
Releases · noear/snack3
v3.2.0
-
Constants 更名为 Options,并优化细节
-
ONode::get(key) ,不再自动为文档树添加节点;如有需要改用 ONode::getOrNew(key)
-
增加自定义编码与解码支持
import org.noear.snack.core.Options;
import java.util.Date;
public class DemoTest {
public void test(UserDto user) {
Options options = Options.def();
options.addEncoder(Date.class, (data, node)->{
node.val().setNumber(data.getTimes());
});
ONode oNode = ONode.loadObj(user, options);
}
}