Commit ed893749 by 348630840@qq.com

2.0.19

parent 950510ff
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
<parent> <parent>
<artifactId>matrix</artifactId> <artifactId>matrix</artifactId>
<groupId>com.secoo.mall</groupId> <groupId>com.secoo.mall</groupId>
<version>2.0.18.RELEASE</version> <version>2.0.19.RELEASE</version>
</parent> </parent>
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
......
package com.secoo.mall.common.core.classloader; package com.secoo.mall.common.core.classloader;
import com.secoo.mall.common.core.exception.SystemInternalException; import com.secoo.mall.common.core.exception.SystemInternalException;
import lombok.extern.slf4j.Slf4j;
import java.lang.reflect.Constructor; import java.lang.reflect.Constructor;
import java.lang.reflect.Method; import java.lang.reflect.Method;
import java.net.URL; import java.net.URL;
import java.net.URLClassLoader; import java.net.URLClassLoader;
@Slf4j
public class MatrixUrlClassLoader extends URLClassLoader { public class MatrixUrlClassLoader extends URLClassLoader {
private volatile static MatrixUrlClassLoader instance; private volatile static MatrixUrlClassLoader instance;
private static ClassLoader classLoader = MatrixUrlClassLoader.class.getClassLoader(); private static ClassLoader classLoader = MatrixUrlClassLoader.class.getClassLoader();
...@@ -23,7 +25,7 @@ public class MatrixUrlClassLoader extends URLClassLoader { ...@@ -23,7 +25,7 @@ public class MatrixUrlClassLoader extends URLClassLoader {
ADD_URL = URLClassLoader.class.getDeclaredMethod("addURL", URL.class); ADD_URL = URLClassLoader.class.getDeclaredMethod("addURL", URL.class);
ADD_URL.setAccessible(true); ADD_URL.setAccessible(true);
} catch (NoSuchMethodException e) { } catch (NoSuchMethodException e) {
e.printStackTrace(); log.error(e.getMessage(), e);
throw new SystemInternalException(); throw new SystemInternalException();
} }
...@@ -49,7 +51,7 @@ public class MatrixUrlClassLoader extends URLClassLoader { ...@@ -49,7 +51,7 @@ public class MatrixUrlClassLoader extends URLClassLoader {
URL url = new URL(urlStr); URL url = new URL(urlStr);
ADD_URL.invoke(classLoader, url); ADD_URL.invoke(classLoader, url);
} catch (Exception e) { } catch (Exception e) {
e.printStackTrace(); log.error(e.getMessage(), e);
throw new SystemInternalException(); throw new SystemInternalException();
} }
} }
...@@ -71,7 +73,7 @@ public class MatrixUrlClassLoader extends URLClassLoader { ...@@ -71,7 +73,7 @@ public class MatrixUrlClassLoader extends URLClassLoader {
return factClass.newInstance(); return factClass.newInstance();
} catch (Exception e) { } catch (Exception e) {
e.printStackTrace(); log.error(e.getMessage(), e);
throw new SystemInternalException(); throw new SystemInternalException();
} }
} }
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
<parent> <parent>
<artifactId>matrix</artifactId> <artifactId>matrix</artifactId>
<groupId>com.secoo.mall</groupId> <groupId>com.secoo.mall</groupId>
<version>2.0.18.RELEASE</version> <version>2.0.19.RELEASE</version>
</parent> </parent>
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
<parent> <parent>
<artifactId>matrix-datasource</artifactId> <artifactId>matrix-datasource</artifactId>
<groupId>com.secoo.mall</groupId> <groupId>com.secoo.mall</groupId>
<version>2.0.18.RELEASE</version> <version>2.0.19.RELEASE</version>
</parent> </parent>
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
<parent> <parent>
<artifactId>matrix</artifactId> <artifactId>matrix</artifactId>
<groupId>com.secoo.mall</groupId> <groupId>com.secoo.mall</groupId>
<version>2.0.18.RELEASE</version> <version>2.0.19.RELEASE</version>
</parent> </parent>
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
<groupId>com.secoo.mall</groupId> <groupId>com.secoo.mall</groupId>
<artifactId>matrix</artifactId> <artifactId>matrix</artifactId>
<version>2.0.18.RELEASE</version> <version>2.0.19.RELEASE</version>
<packaging>pom</packaging> <packaging>pom</packaging>
...@@ -60,7 +60,7 @@ ...@@ -60,7 +60,7 @@
<dependency> <dependency>
<groupId>com.secoo.mall</groupId> <groupId>com.secoo.mall</groupId>
<artifactId>common-core</artifactId> <artifactId>common-core</artifactId>
<version>2.0.18.RELEASE</version> <version>2.0.19.RELEASE</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>com.secoo.mall</groupId> <groupId>com.secoo.mall</groupId>
...@@ -70,7 +70,7 @@ ...@@ -70,7 +70,7 @@
<dependency> <dependency>
<groupId>com.secoo.mall</groupId> <groupId>com.secoo.mall</groupId>
<artifactId>common-util</artifactId> <artifactId>common-util</artifactId>
<version>2.0.18.RELEASE</version> <version>2.0.19.RELEASE</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>com.secoo.mall</groupId> <groupId>com.secoo.mall</groupId>
......
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