Explorar o código

添加validation依赖

LGH %!s(int64=4) %!d(string=hai) anos
pai
achega
a476236131
Modificáronse 1 ficheiros con 9 adicións e 5 borrados
  1. 9 5
      yami-shop-common/pom.xml

+ 9 - 5
yami-shop-common/pom.xml

@@ -45,10 +45,14 @@
             <artifactId>mysql-connector-java</artifactId>
         </dependency>
 		<!-- 开始spring 缓存 -->
-		<dependency>  
-            <groupId>org.springframework.boot</groupId>  
-            <artifactId>spring-boot-starter-cache</artifactId>  
-        </dependency> 
+		<dependency>
+            <groupId>org.springframework.boot</groupId>
+            <artifactId>spring-boot-starter-cache</artifactId>
+        </dependency>
+        <dependency>
+            <groupId>org.springframework.boot</groupId>
+            <artifactId>spring-boot-starter-validation</artifactId>
+        </dependency>
         <dependency>
             <groupId>org.redisson</groupId>
             <artifactId>redisson-spring-boot-starter</artifactId>
@@ -94,4 +98,4 @@
             <artifactId>weixin-java-mp</artifactId>
         </dependency>
     </dependencies>
-</project>
+</project>