Browse Source

fix: maven缺失hibernate-validator

Junling Bu 6 years ago
parent
commit
5d8dff4b6e
2 changed files with 10 additions and 0 deletions
  1. 4 0
      litemall-core/pom.xml
  2. 6 0
      pom.xml

+ 4 - 0
litemall-core/pom.xml

@@ -11,6 +11,10 @@
     </parent>
 
     <dependencies>
+        <dependency>
+            <groupId>org.hibernate.validator</groupId>
+            <artifactId>hibernate-validator</artifactId>
+        </dependency>
 
         <dependency>
             <groupId>org.springframework.boot</groupId>

+ 6 - 0
pom.xml

@@ -75,6 +75,12 @@
                 <version>1.4.0</version>
             </dependency>
 
+            <dependency>
+                <groupId>org.hibernate.validator</groupId>
+                <artifactId>hibernate-validator</artifactId>
+                <version>6.0.15.Final</version>
+            </dependency>
+
             <!-- MySQL 连接驱动依赖 -->
             <dependency>
                 <groupId>mysql</groupId>