修复common模块工具类的报错。

修改启动时的框架信息。
This commit is contained in:
徐晨晨 2020-07-07 11:32:52 +08:00
parent ca39625665
commit e87a22b5ab
5 changed files with 15 additions and 5 deletions

View File

@ -16,6 +16,11 @@
<option name="name" value="Maven Central repository" />
<option name="url" value="https://repo1.maven.org/maven2" />
</remote-repository>
<remote-repository>
<option name="id" value="central" />
<option name="name" value="Central Repository" />
<option name="url" value="http://maven.aliyun.com/nexus/content/repositories/central/" />
</remote-repository>
<remote-repository>
<option name="id" value="jboss.community" />
<option name="name" value="JBoss Community repository" />

View File

@ -13,6 +13,11 @@
<packaging>jar</packaging>
<version>1.0-SNAPSHOT</version>
<dependencies>
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-validator</artifactId>
<version>5.1.1.Final</version>
</dependency>
<dependency>
<groupId>commons-lang</groupId>
<artifactId>commons-lang</artifactId>

View File

@ -25,9 +25,6 @@ import java.util.Set;
public class ValidatorUtils {
private static Validator validator;
static {
validator = Validation.buildDefaultValidatorFactory().getValidator();
}
/**
* 校验对象
@ -37,6 +34,9 @@ public class ValidatorUtils {
*/
public static void validateEntity(Object object, Class<?>... groups)
throws RRException {
if (validator == null) {
validator = Validation.buildDefaultValidatorFactory().getValidator();
}
Set<ConstraintViolation<Object>> constraintViolations = validator.validate(object, groups);
if (!constraintViolations.isEmpty()) {
StringBuilder msg = new StringBuilder();

View File

@ -70,7 +70,7 @@ renren:
# APP模块是通过jwt认证的如果要使用APP模块则需要修改【加密秘钥】
jwt:
# 加密秘钥
secret: f4e2e52034348f86b67cde581c0f9eb5[www.renren.io]
secret: f4e2e52034348f86b67cde581c0f9eb5
# token有效时长7天单位秒
expire: 604800
header: token

View File

@ -1,5 +1,5 @@
====================================================================================================================
欢迎使用 renren-fast 人人快速开发平台 - Powered By https://www.renren.io/
中建材轻工业自动化研究所有限公司产品WCS调度管理系统
====================================================================================================================