| 构造器和说明 |
|---|
VelocityRender() |
| 限定符和类型 | 方法和说明 |
|---|---|
String |
getEncoding() |
static VelocityRender |
global() |
<T extends org.apache.velocity.runtime.directive.Directive> |
putDirective(T obj)
添加共享指令(自定义标签)
|
void |
putVariable(String key,
Object obj)
添加共享变量
|
void |
render_mav(ModelAndView mv,
Context ctx,
SupplierEx<OutputStream> outputStream) |
void |
render(Object obj,
Context ctx) |
String |
renderAndReturn(Object obj,
Context ctx) |
public static VelocityRender global()
public <T extends org.apache.velocity.runtime.directive.Directive> void putDirective(T obj)
public String getEncoding()
public String renderAndReturn(Object obj, Context ctx) throws Throwable
renderAndReturn 在接口中 RenderThrowablepublic void render_mav(ModelAndView mv, Context ctx, SupplierEx<OutputStream> outputStream) throws Throwable
ThrowableCopyright © 2021. All rights reserved.