public class ValidErrorRender extends com.jfinal.render.Render
JbootRenderFactory 来实现自定义渲染验证错误| 限定符和类型 | 字段和说明 |
|---|---|
protected int |
errorCode |
protected static String |
html_footer |
protected static String |
html_header |
protected static String |
htmlContentType |
protected static String |
jsonContentType |
protected static String |
poweredBy |
protected ValidException |
validException |
| 构造器和说明 |
|---|
ValidErrorRender(ValidException validException) |
| 限定符和类型 | 方法和说明 |
|---|---|
String |
getErrorHtml() |
String |
getErrorJson() |
void |
render() |
protected static final String htmlContentType
protected static final String jsonContentType
protected static final String html_header
protected static final String html_footer
protected int errorCode
protected final ValidException validException
public ValidErrorRender(ValidException validException)
public void render()
render 在类中 com.jfinal.render.Renderpublic String getErrorHtml()
public String getErrorJson()
Copyright © 2024. All rights reserved.