build: mybatis config
This commit is contained in:
parent
dd03a09eac
commit
55989e31ec
|
@ -45,11 +45,7 @@ public class MybatisConfig {
|
||||||
public MybatisInterceptor dbInterceptor() {
|
public MybatisInterceptor dbInterceptor() {
|
||||||
MybatisInterceptor interceptor = new MybatisInterceptor();
|
MybatisInterceptor interceptor = new MybatisInterceptor();
|
||||||
List<MybatisInterceptorConfig> configList = new ArrayList<>();
|
List<MybatisInterceptorConfig> configList = new ArrayList<>();
|
||||||
// configList.add(new MybatisInterceptorConfig(FileContent.class, "file", CompressUtils.class, "zip", "unZip"));
|
// configList.add(new MybatisInterceptorConfig(FileContent.class, "file", CompressUtils.class, "zip", "unzip"));
|
||||||
// configList.add(new MybatisInterceptorConfig(ApiTestReportDetail.class, "content", CompressUtils.class, "gzip", "unGzip"));
|
|
||||||
// configList.add(new MybatisInterceptorConfig(TestResource.class, "configuration"));
|
|
||||||
// configList.add(new MybatisInterceptorConfig(AuthSource.class, "configuration"));
|
|
||||||
// configList.add(new MybatisInterceptorConfig(LoadTestReportLog.class, "content", CompressUtils.class, "zipString", "unZipString"));
|
|
||||||
interceptor.setInterceptorConfigList(configList);
|
interceptor.setInterceptorConfigList(configList);
|
||||||
return interceptor;
|
return interceptor;
|
||||||
}
|
}
|
||||||
|
|
|
@ -132,7 +132,7 @@ public class CompressUtils {
|
||||||
* @param data 待解压数据
|
* @param data 待解压数据
|
||||||
* @return 解压后数据
|
* @return 解压后数据
|
||||||
*/
|
*/
|
||||||
public static Object unZip(Object data) {
|
public static Object unzip(Object data) {
|
||||||
if (!(data instanceof byte[])) {
|
if (!(data instanceof byte[])) {
|
||||||
return data;
|
return data;
|
||||||
}
|
}
|
||||||
|
@ -173,7 +173,7 @@ public class CompressUtils {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public static Object unZipString(Object data) {
|
public static Object unzipString(Object data) {
|
||||||
if (!(data instanceof String)) {
|
if (!(data instanceof String)) {
|
||||||
return data;
|
return data;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue