Render类的render方法为什么会被自动执行?我代码里并没有调用render方法啊。
public class FujianRender extends Render {
Record adJunct;
public FujianRender (Record adJunct) {
this.adJunct = adJunct;
}
@Override
public void render() {
//附件解析
}
}
//主函数
public class Test {
public static void main(String[] args) throws ParseException {
Record adJunct = Db.findById("FUJIAN", id);
new AdJunctRender(adJunct));
}
}
项目:JFINAL框架研学平台