Commit 0fd82cdf by Future

日志调整

parent 07eff3a4
...@@ -42,7 +42,6 @@ public class GeneralMethodArgumentResolver implements MethodArgumentResolver { ...@@ -42,7 +42,6 @@ public class GeneralMethodArgumentResolver implements MethodArgumentResolver {
RequestBody requestBodyDefine = parameter.getParameterAnnotation(RequestBody.class); RequestBody requestBodyDefine = parameter.getParameterAnnotation(RequestBody.class);
if(requestBodyDefine != null) { if(requestBodyDefine != null) {
Class<?> clazz = parameter.getParameterType(); Class<?> clazz = parameter.getParameterType();
System.out.println("clazz" + clazz);
object = JsonUtils.beanCopyDeep(request.getData(), clazz); object = JsonUtils.beanCopyDeep(request.getData(), clazz);
return object; return object;
} }
...@@ -57,7 +56,6 @@ public class GeneralMethodArgumentResolver implements MethodArgumentResolver { ...@@ -57,7 +56,6 @@ public class GeneralMethodArgumentResolver implements MethodArgumentResolver {
} else if (ArgumentBox.class.isAssignableFrom(clazz)) { } else if (ArgumentBox.class.isAssignableFrom(clazz)) {
object = argumentBox; object = argumentBox;
} else { } else {
System.out.println("clazz" + clazz);
object = JsonUtils.beanCopyDeep(value, clazz); object = JsonUtils.beanCopyDeep(value, clazz);
} }
if(object == null) { if(object == null) {
......
package com.wecloud.im.param.add; package com.wecloud.im.param.add;
import com.wecloud.dispatch.common.BaseRequest;
import io.geekidea.springbootplus.framework.common.entity.BaseEntity; import io.geekidea.springbootplus.framework.common.entity.BaseEntity;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
...@@ -8,7 +7,6 @@ import lombok.Data; ...@@ -8,7 +7,6 @@ import lombok.Data;
import lombok.EqualsAndHashCode; import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors; import lombok.experimental.Accessors;
import java.io.Serializable;
import java.util.HashMap; import java.util.HashMap;
/** /**
...@@ -21,7 +19,7 @@ import java.util.HashMap; ...@@ -21,7 +19,7 @@ import java.util.HashMap;
@Accessors(chain = true) @Accessors(chain = true)
@EqualsAndHashCode(callSuper = true) @EqualsAndHashCode(callSuper = true)
@ApiModel(value = "ImConversationAttrUpdate") @ApiModel(value = "ImConversationAttrUpdate")
public class ImConversationAttrUpdate extends BaseRequest implements Serializable { public class ImConversationAttrUpdate extends BaseEntity {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
@ApiModelProperty("json格式,自定义属性,供开发者扩展使用。") @ApiModelProperty("json格式,自定义属性,供开发者扩展使用。")
......
...@@ -9,7 +9,6 @@ import org.apache.commons.lang3.StringUtils; ...@@ -9,7 +9,6 @@ import org.apache.commons.lang3.StringUtils;
import org.springframework.cglib.beans.BeanMap; import org.springframework.cglib.beans.BeanMap;
import java.io.IOException; import java.io.IOException;
import java.lang.reflect.Field;
import java.math.BigDecimal; import java.math.BigDecimal;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.Collections; import java.util.Collections;
...@@ -42,7 +41,6 @@ public class JsonUtils { ...@@ -42,7 +41,6 @@ public class JsonUtils {
return null; return null;
} }
try { try {
log.warn("解析json字符串失败,原字符串: {} class {}", strJsonBody, c);
return OBJECT_MAPPER.readValue(strJsonBody, c); return OBJECT_MAPPER.readValue(strJsonBody, c);
} catch (IOException e) { } catch (IOException e) {
log.warn("解析json字符串失败,原字符串: {} class {}", strJsonBody, c, e); log.warn("解析json字符串失败,原字符串: {} class {}", strJsonBody, c, e);
...@@ -189,6 +187,7 @@ public class JsonUtils { ...@@ -189,6 +187,7 @@ public class JsonUtils {
} }
} }
/** /**
* 判断字符也许是JSON * 判断字符也许是JSON
* *
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment