新增校验
Showing
1 changed file
with
2 additions
and
0 deletions
| ... | @@ -9,6 +9,7 @@ import com.lego.core.domin.bo.AdvertBo; | ... | @@ -9,6 +9,7 @@ import com.lego.core.domin.bo.AdvertBo; |
| 9 | import com.lego.core.domin.vo.AdvertVo; | 9 | import com.lego.core.domin.vo.AdvertVo; |
| 10 | import com.lego.core.service.IAdvertService; | 10 | import com.lego.core.service.IAdvertService; |
| 11 | import lombok.RequiredArgsConstructor; | 11 | import lombok.RequiredArgsConstructor; |
| 12 | import org.springframework.validation.annotation.Validated; | ||
| 12 | import org.springframework.web.bind.annotation.*; | 13 | import org.springframework.web.bind.annotation.*; |
| 13 | 14 | ||
| 14 | import javax.servlet.http.HttpServletRequest; | 15 | import javax.servlet.http.HttpServletRequest; |
| ... | @@ -23,6 +24,7 @@ import java.rmi.ServerException; | ... | @@ -23,6 +24,7 @@ import java.rmi.ServerException; |
| 23 | @RequiredArgsConstructor | 24 | @RequiredArgsConstructor |
| 24 | @RestController | 25 | @RestController |
| 25 | @RequestMapping("/core/advert") | 26 | @RequestMapping("/core/advert") |
| 27 | @Validated | ||
| 26 | public class AdvertController extends BaseController { | 28 | public class AdvertController extends BaseController { |
| 27 | private final IAdvertService service; | 29 | private final IAdvertService service; |
| 28 | 30 | ... | ... |
-
Please register or sign in to post a comment