Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
matrix
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
CI / CD
CI / CD
Pipelines
Schedules
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
mall
arch
matrix
Commits
71fc231d
Commit
71fc231d
authored
May 22, 2019
by
qiuweili123
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add file
parent
75d870bb
Hide whitespace changes
Inline
Side-by-side
Showing
17 changed files
with
34 additions
and
25 deletions
+34
-25
pom.xml
common-core/pom.xml
+1
-1
pom.xml
common-util/pom.xml
+6
-2
BeanUtil.java
common-util/src/main/java/com/secoo/mall/common/util/bean/BeanUtil.java
+2
-10
FileUtil.java
common-util/src/main/java/com/secoo/mall/common/util/file/FileUtil.java
+6
-0
IOUtil.java
common-util/src/main/java/com/secoo/mall/common/util/file/IOUtil.java
+6
-0
logback-spring.xml
common-util/src/main/resources/logback-spring.xml
+2
-2
pom.xml
dubbo-starter/pom.xml
+1
-1
pom.xml
elasticsearch-starter/pom.xml
+1
-1
pom.xml
mongodb-starter/pom.xml
+1
-1
pom.xml
monitor-starter/pom.xml
+1
-1
pom.xml
mybatis-starter/pom.xml
+1
-1
pom.xml
openfeign-starter/pom.xml
+1
-1
pom.xml
pom.xml
+1
-1
pom.xml
redis-starter/pom.xml
+1
-1
pom.xml
rocketmq-starter/pom.xml
+1
-1
pom.xml
web-starter/pom.xml
+1
-1
ControllerResponseAdvice.java
web-starter/src/main/java/com/secoo/mall/web/advice/ControllerResponseAdvice.java
+1
-0
No files found.
common-core/pom.xml
View file @
71fc231d
...
@@ -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.100
7
-DEV-SNAPSHOT
</version>
<version>
1.0.2.100
9
-DEV-SNAPSHOT
</version>
</parent>
</parent>
<modelVersion>
4.0.0
</modelVersion>
<modelVersion>
4.0.0
</modelVersion>
...
...
common-util/pom.xml
View file @
71fc231d
...
@@ -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.100
7
-DEV-SNAPSHOT
</version>
<version>
1.0.2.100
9
-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>
...
...
common-util/src/main/java/com/secoo/mall/common/util/bean/BeanUtil.java
View file @
71fc231d
...
@@ -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
copyProp
ertie
s
(
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
);
}
}
}
}
common-util/src/main/java/com/secoo/mall/common/util/file/FileUtil.java
0 → 100644
View file @
71fc231d
package
com
.
secoo
.
mall
.
common
.
util
.
file
;
import
org.apache.commons.io.FileUtils
;
public
class
FileUtil
extends
FileUtils
{
}
common-util/src/main/java/com/secoo/mall/common/util/file/IOUtil.java
0 → 100644
View file @
71fc231d
package
com
.
secoo
.
mall
.
common
.
util
.
file
;
import
org.apache.commons.io.IOUtils
;
public
class
IOUtil
extends
IOUtils
{
}
common-util/src/main/resources/logback-spring.xml
View file @
71fc231d
...
@@ -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">
...
...
dubbo-starter/pom.xml
View file @
71fc231d
...
@@ -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.100
7
-DEV-SNAPSHOT
</version>
<version>
1.0.2.100
9
-DEV-SNAPSHOT
</version>
</parent>
</parent>
<modelVersion>
4.0.0
</modelVersion>
<modelVersion>
4.0.0
</modelVersion>
...
...
elasticsearch-starter/pom.xml
View file @
71fc231d
...
@@ -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.100
7
-DEV-SNAPSHOT
</version>
<version>
1.0.2.100
9
-DEV-SNAPSHOT
</version>
</parent>
</parent>
<modelVersion>
4.0.0
</modelVersion>
<modelVersion>
4.0.0
</modelVersion>
...
...
mongodb-starter/pom.xml
View file @
71fc231d
...
@@ -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.100
7
-DEV-SNAPSHOT
</version>
<version>
1.0.2.100
9
-DEV-SNAPSHOT
</version>
</parent>
</parent>
<modelVersion>
4.0.0
</modelVersion>
<modelVersion>
4.0.0
</modelVersion>
...
...
monitor-starter/pom.xml
View file @
71fc231d
...
@@ -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.100
7
-DEV-SNAPSHOT
</version>
<version>
1.0.2.100
9
-DEV-SNAPSHOT
</version>
</parent>
</parent>
<modelVersion>
4.0.0
</modelVersion>
<modelVersion>
4.0.0
</modelVersion>
...
...
mybatis-starter/pom.xml
View file @
71fc231d
...
@@ -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.100
7
-DEV-SNAPSHOT
</version>
<version>
1.0.2.100
9
-DEV-SNAPSHOT
</version>
</parent>
</parent>
<modelVersion>
4.0.0
</modelVersion>
<modelVersion>
4.0.0
</modelVersion>
...
...
openfeign-starter/pom.xml
View file @
71fc231d
...
@@ -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.100
7
-DEV-SNAPSHOT
</version>
<version>
1.0.2.100
9
-DEV-SNAPSHOT
</version>
</parent>
</parent>
<modelVersion>
4.0.0
</modelVersion>
<modelVersion>
4.0.0
</modelVersion>
...
...
pom.xml
View file @
71fc231d
...
@@ -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.100
7
-DEV-SNAPSHOT
</version>
<version>
1.0.2.100
9
-DEV-SNAPSHOT
</version>
</parent>
</parent>
<artifactId>
mall-common
</artifactId>
<artifactId>
mall-common
</artifactId>
...
...
redis-starter/pom.xml
View file @
71fc231d
...
@@ -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.100
7
-DEV-SNAPSHOT
</version>
<version>
1.0.2.100
9
-DEV-SNAPSHOT
</version>
</parent>
</parent>
<modelVersion>
4.0.0
</modelVersion>
<modelVersion>
4.0.0
</modelVersion>
...
...
rocketmq-starter/pom.xml
View file @
71fc231d
...
@@ -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.100
7
-DEV-SNAPSHOT
</version>
<version>
1.0.2.100
9
-DEV-SNAPSHOT
</version>
</parent>
</parent>
<modelVersion>
4.0.0
</modelVersion>
<modelVersion>
4.0.0
</modelVersion>
...
...
web-starter/pom.xml
View file @
71fc231d
...
@@ -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.100
7
-DEV-SNAPSHOT
</version>
<version>
1.0.2.100
9
-DEV-SNAPSHOT
</version>
</parent>
</parent>
<modelVersion>
4.0.0
</modelVersion>
<modelVersion>
4.0.0
</modelVersion>
...
...
web-starter/src/main/java/com/secoo/mall/web/advice/ControllerResponseAdvice.java
View file @
71fc231d
...
@@ -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
));
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment