摘要:代码中未使用任何框架,使用原生Servlet实现。自定义标签的使用:1、在freemarker.template.Configuration中初始化标签。//初始化标签config.setSharedVariable("hello", new HelloWorldDirective());2、在标签类中实现TemplateDirectiveModel接口中的execute方法public class HelloWorldDirective implements TemplateDirectiveModel { @SuppressWarnings("unchecke
阅读全文