From 504ef169a8dac3df574afea3a265512d347cadda Mon Sep 17 00:00:00 2001 From: mazhicheng Date: Tue, 15 Oct 2019 18:04:55 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BE=9D=E8=B5=96hibernate-validator?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- build.gradle | 6 +++--- diboot-shiro/build.gradle | 3 +-- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/build.gradle b/build.gradle index d8da27f..ac879d1 100644 --- a/build.gradle +++ b/build.gradle @@ -4,7 +4,6 @@ buildscript { } repositories { mavenLocal() //优先查找本地maven库,性能最好 - maven{ url 'http://maven.diboot.com/repository/diboot'} maven{ url 'http://maven.aliyun.com/nexus/content/groups/public/'} } dependencies { @@ -30,7 +29,6 @@ subprojects { [compileJava,compileTestJava,javadoc]*.options*.encoding = 'UTF-8' repositories { mavenLocal() //优先查找本地maven库,性能最好 - maven{ url 'http://maven.diboot.com/repository/diboot/'} maven{ url 'http://maven.aliyun.com/nexus/content/groups/public/'} } ext {//依赖版本 @@ -40,7 +38,7 @@ subprojects { mybatisPlusVersion = "3.2.0" fastjsonVersion = "1.2.60" lombokVersion = "1.18.8" - + validatorVersion = "6.0.17.Final" } dependencies { // Gradle 5.0及以上版本,使用如下方式 @@ -60,6 +58,8 @@ subprojects { compile("mysql:mysql-connector-java:$mysqlConnectorVersion") // JSON compile("com.alibaba:fastjson:$fastjsonVersion") + // 数据校验 + compile("org.hibernate.validator:hibernate-validator:$validatorVersion") // Apache Commons compile("org.apache.commons:commons-lang3:3.8.1", "commons-fileupload:commons-fileupload:1.3.3", diff --git a/diboot-shiro/build.gradle b/diboot-shiro/build.gradle index 8ca500b..411f6ad 100644 --- a/diboot-shiro/build.gradle +++ b/diboot-shiro/build.gradle @@ -1,9 +1,8 @@ apply plugin: 'org.springframework.boot' dependencies { -// compile project(":diboot-core") + compile project(":diboot-core") - compile("com.diboot:diboot-core-spring-boot-starter:2.0.3") compile("org.apache.shiro:shiro-spring:1.4.1") compile("org.aspectj:aspectjweaver") compile("com.auth0:java-jwt:3.4.1",