其他分享
首页 > 其他分享> > MyFreeMarkerConfigurer

MyFreeMarkerConfigurer

作者:互联网

public class MyFreeMarkerConfigurer extends FreeMarkerConfigurer {
    @Override
    public void afterPropertiesSet() throws IOException, TemplateException {
        super.afterPropertiesSet();
        Configuration cf = this.getConfiguration();
        cf.setSharedVariable("shiro",new ShiroTags());
    }
}

 

标签:getConfiguration,MyFreeMarkerConfigurer,cf,ShiroTags,afterPropertiesSet,public
来源: https://www.cnblogs.com/not996/p/14090752.html