Commit 3ba485af by qiuweili123

modify

parent 05ac0a1e
...@@ -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.1006-DEV-SNAPSHOT</version> <version>1.0.2.1007-DEV-SNAPSHOT</version>
</parent> </parent>
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
......
...@@ -6,5 +6,11 @@ public interface CommonConstant { ...@@ -6,5 +6,11 @@ public interface CommonConstant {
Integer CODE = 0; Integer CODE = 0;
String MSG = "success"; String MSG = "success";
} }
interface Env {
String LOCAL = "local";
String DEV = "dev";
String TEST = "test";
String BETA = "beta";
String PROD = "prod";
}
} }
...@@ -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.1006-DEV-SNAPSHOT</version> <version>1.0.2.1007-DEV-SNAPSHOT</version>
</parent> </parent>
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
...@@ -20,6 +20,21 @@ ...@@ -20,6 +20,21 @@
<groupId>commons-beanutils</groupId> <groupId>commons-beanutils</groupId>
<artifactId>commons-beanutils</artifactId> <artifactId>commons-beanutils</artifactId>
</dependency> </dependency>
<dependency>
<groupId>org.codehaus.janino</groupId>
<artifactId>commons-compiler</artifactId>
<version>2.7.8</version>
</dependency>
<dependency>
<groupId>org.codehaus.janino</groupId>
<artifactId>janino</artifactId>
<version>2.7.8</version>
</dependency>
<dependency>
<groupId>javax.mail</groupId>
<artifactId>mail</artifactId>
<version>1.4.7</version>
</dependency>
</dependencies> </dependencies>
......
...@@ -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.1006-DEV-SNAPSHOT</version> <version>1.0.2.1007-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.1006-DEV-SNAPSHOT</version> <version>1.0.2.1007-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.1006-DEV-SNAPSHOT</version> <version>1.0.2.1007-DEV-SNAPSHOT</version>
</parent> </parent>
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
......
...@@ -7,6 +7,7 @@ import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor; ...@@ -7,6 +7,7 @@ import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;
import com.baomidou.mybatisplus.extension.plugins.PerformanceInterceptor; import com.baomidou.mybatisplus.extension.plugins.PerformanceInterceptor;
import com.baomidou.mybatisplus.extension.spring.MybatisSqlSessionFactoryBean; import com.baomidou.mybatisplus.extension.spring.MybatisSqlSessionFactoryBean;
import com.baomidou.mybatisplus.extension.toolkit.PackageHelper; import com.baomidou.mybatisplus.extension.toolkit.PackageHelper;
import com.secoo.mall.common.constant.CommonConstant;
import com.secoo.mall.mybatis.handler.FillDefaultValueHandler; import com.secoo.mall.mybatis.handler.FillDefaultValueHandler;
import org.apache.commons.lang3.StringUtils; import org.apache.commons.lang3.StringUtils;
import org.apache.ibatis.session.SqlSessionFactory; import org.apache.ibatis.session.SqlSessionFactory;
...@@ -49,7 +50,7 @@ public class MybatisConfig { ...@@ -49,7 +50,7 @@ public class MybatisConfig {
/* 乐观锁插件 */ /* 乐观锁插件 */
// configuration.addInterceptor(new OptimisticLockerInterceptor()); // configuration.addInterceptor(new OptimisticLockerInterceptor());
//非生产环境加载的插件 //非生产环境加载的插件
if (!profile.equals("prod")) { if (!CommonConstant.Env.PROD.equals(profile) ) {
configuration.addInterceptor(new PerformanceInterceptor()); configuration.addInterceptor(new PerformanceInterceptor());
} }
......
...@@ -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.1006-DEV-SNAPSHOT</version> <version>1.0.2.1007-DEV-SNAPSHOT</version>
</parent> </parent>
<artifactId>mall-common</artifactId> <artifactId>mall-common</artifactId>
......
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