public abstract class BaseThymeleafConversionHandler extends Object
| 限定符和类型 | 类和说明 |
|---|---|
static interface |
BaseThymeleafConversionHandler.ConversionType
哪些类型可以转换: 请定义枚举子类
|
| 构造器和说明 |
|---|
BaseThymeleafConversionHandler() |
| 限定符和类型 | 方法和说明 |
|---|---|
protected abstract String |
convert(String content)
转换的数据,如把useId转为userName
|
static String |
convert(String content,
String type)
转换某个类型的数据
|
static Map<String,BaseThymeleafConversionHandler> |
getSubAppendJsonHandlerMap()
获得所有的处理类
|
protected abstract BaseThymeleafConversionHandler.ConversionType |
type()
处理的类型
|
protected abstract BaseThymeleafConversionHandler.ConversionType type()
protected abstract String convert(String content)
content - 待转换的数据public static String convert(String content, String type)
content - 原数据type - 类型public static Map<String,BaseThymeleafConversionHandler> getSubAppendJsonHandlerMap()
Copyright © 2022. All rights reserved.