修复common模块工具类的报错。
修改启动时的框架信息。
This commit is contained in:
parent
ca39625665
commit
e87a22b5ab
@ -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" />
|
||||
|
@ -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>
|
||||
|
@ -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();
|
||||
|
@ -70,7 +70,7 @@ renren:
|
||||
# APP模块,是通过jwt认证的,如果要使用APP模块,则需要修改【加密秘钥】
|
||||
jwt:
|
||||
# 加密秘钥
|
||||
secret: f4e2e52034348f86b67cde581c0f9eb5[www.renren.io]
|
||||
secret: f4e2e52034348f86b67cde581c0f9eb5
|
||||
# token有效时长,7天,单位秒
|
||||
expire: 604800
|
||||
header: token
|
@ -1,5 +1,5 @@
|
||||
====================================================================================================================
|
||||
|
||||
欢迎使用 renren-fast 人人快速开发平台 - Powered By https://www.renren.io/
|
||||
中建材轻工业自动化研究所有限公司产品:WCS调度管理系统
|
||||
|
||||
====================================================================================================================
|
Loading…
Reference in New Issue
Block a user