Commit 71fc231d by qiuweili123

add file

parent 75d870bb
......@@ -5,7 +5,7 @@
<parent>
<artifactId>mall-common</artifactId>
<groupId>com.secoo.mall</groupId>
<version>1.0.2.1007-DEV-SNAPSHOT</version>
<version>1.0.2.1009-DEV-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
......
......@@ -5,7 +5,7 @@
<parent>
<artifactId>mall-common</artifactId>
<groupId>com.secoo.mall</groupId>
<version>1.0.2.1007-DEV-SNAPSHOT</version>
<version>1.0.2.1009-DEV-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
......@@ -21,6 +21,10 @@
<artifactId>commons-beanutils</artifactId>
</dependency>
<dependency>
<groupId>commons-io</groupId>
<artifactId>commons-io</artifactId>
</dependency>
<!-- <dependency>
<groupId>org.codehaus.janino</groupId>
<artifactId>commons-compiler</artifactId>
<version>2.7.8</version>
......@@ -34,7 +38,7 @@
<groupId>javax.mail</groupId>
<artifactId>mail</artifactId>
<version>1.4.7</version>
</dependency>
</dependency>-->
</dependencies>
......
......@@ -18,7 +18,7 @@ public class BeanUtil extends BeanUtils {
return ArrayUtils.contains(arr, obj);
}
public static <T> Object getFieldValueByName(T obj, String fieldName) throws Exception {
public static <T> Object getFieldValueByName(T obj, String fieldName) throws Exception {
Class clazz = obj.getClass();
Field field = clazz.getDeclaredField(fieldName);
field.setAccessible(true);
......@@ -33,7 +33,7 @@ public class BeanUtil extends BeanUtils {
return FastJsonUtil.toBean(tmp, classOfT);
}
public static void copyProperties(Object dest, Object orig) {
public static void copyProps(Object dest, Object orig) {
try {
copyProperties(dest, orig);
} catch (Exception e) {
......@@ -41,12 +41,4 @@ public class BeanUtil extends BeanUtils {
}
}
public static void copyProperties(Object bean, String name, Object value) {
try {
copyProperty(bean, name, value);
} catch (Exception e) {
throw new BusinessException(CommonErrorCode.SYSTEM_INTERNAL_EXCEPTION);
}
}
}
package com.secoo.mall.common.util.file;
import org.apache.commons.io.FileUtils;
public class FileUtil extends FileUtils {
}
package com.secoo.mall.common.util.file;
import org.apache.commons.io.IOUtils;
public class IOUtil extends IOUtils {
}
......@@ -11,6 +11,7 @@
<springProperty scope="context" name="logLevel" source="log.level" defaultValue="info"/>
<springProperty scope="context" name="logName" source="spring.application.name" defaultValue="app"/>
<springProperty scope="context" name="logPath" source="logging.path" defaultValue="/data/logs"/>
<springProperty scope="context" name="immediateFlush" source="log.immediateFlush" defaultValue="true"/>
<springProfile name="test,dev,local">
<springProperty scope="context" name="logPath" source="logging.path" defaultValue="./logs"/>
......@@ -55,7 +56,6 @@
<pattern>${PATTERN}</pattern>
<charset>UTF-8</charset>
</encoder>
<immediateFlush>false</immediateFlush>
</appender>
<appender name="APP" class="ch.qos.logback.core.rolling.RollingFileAppender">
......@@ -72,7 +72,7 @@
<pattern>${PATTERN}</pattern>
<charset>UTF-8</charset>
</encoder>
<immediateFlush>false</immediateFlush>
<immediateFlush>${immediateFlush}</immediateFlush>
</appender>
<!--
<appender name="EMAIL" class="ch.qos.logback.classic.net.SMTPAppender">
......
......@@ -5,7 +5,7 @@
<parent>
<artifactId>mall-common</artifactId>
<groupId>com.secoo.mall</groupId>
<version>1.0.2.1007-DEV-SNAPSHOT</version>
<version>1.0.2.1009-DEV-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
......
......@@ -5,7 +5,7 @@
<parent>
<artifactId>mall-common</artifactId>
<groupId>com.secoo.mall</groupId>
<version>1.0.2.1007-DEV-SNAPSHOT</version>
<version>1.0.2.1009-DEV-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
......
......@@ -5,7 +5,7 @@
<parent>
<artifactId>mall-common</artifactId>
<groupId>com.secoo.mall</groupId>
<version>1.0.2.1007-DEV-SNAPSHOT</version>
<version>1.0.2.1009-DEV-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
......
......@@ -5,7 +5,7 @@
<parent>
<artifactId>mall-common</artifactId>
<groupId>com.secoo.mall</groupId>
<version>1.0.2.1007-DEV-SNAPSHOT</version>
<version>1.0.2.1009-DEV-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
......
......@@ -5,7 +5,7 @@
<parent>
<artifactId>mall-common</artifactId>
<groupId>com.secoo.mall</groupId>
<version>1.0.2.1007-DEV-SNAPSHOT</version>
<version>1.0.2.1009-DEV-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
......
......@@ -5,7 +5,7 @@
<parent>
<artifactId>mall-common</artifactId>
<groupId>com.secoo.mall</groupId>
<version>1.0.2.1007-DEV-SNAPSHOT</version>
<version>1.0.2.1009-DEV-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
......
......@@ -7,7 +7,7 @@
<parent>
<groupId>com.secoo.mall</groupId>
<artifactId>mall-parent</artifactId>
<version>1.0.2.1007-DEV-SNAPSHOT</version>
<version>1.0.2.1009-DEV-SNAPSHOT</version>
</parent>
<artifactId>mall-common</artifactId>
......
......@@ -5,7 +5,7 @@
<parent>
<artifactId>mall-common</artifactId>
<groupId>com.secoo.mall</groupId>
<version>1.0.2.1007-DEV-SNAPSHOT</version>
<version>1.0.2.1009-DEV-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
......
......@@ -5,7 +5,7 @@
<parent>
<artifactId>mall-common</artifactId>
<groupId>com.secoo.mall</groupId>
<version>1.0.2.1007-DEV-SNAPSHOT</version>
<version>1.0.2.1009-DEV-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
......
......@@ -5,7 +5,7 @@
<parent>
<artifactId>mall-common</artifactId>
<groupId>com.secoo.mall</groupId>
<version>1.0.2.1007-DEV-SNAPSHOT</version>
<version>1.0.2.1009-DEV-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
......
......@@ -34,6 +34,7 @@ public class ControllerResponseAdvice implements ResponseBodyAdvice<Object> {
@ExceptionHandler(ParameterException.class)
public Object parameterExceptionHandler(ParameterException e) {
LoggerUtil.info(getMsg(e));
return ResponseUtil.getFailResponse(e.getCode(), getMsg(e));
}
......
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