Commit 71fc231d by qiuweili123

add file

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