ce334ec7 by chentao

新增校验

1 parent 7c62fea9
......@@ -9,6 +9,7 @@ import com.lego.core.domin.bo.AdvertBo;
import com.lego.core.domin.vo.AdvertVo;
import com.lego.core.service.IAdvertService;
import lombok.RequiredArgsConstructor;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;
import javax.servlet.http.HttpServletRequest;
......@@ -23,6 +24,7 @@ import java.rmi.ServerException;
@RequiredArgsConstructor
@RestController
@RequestMapping("/core/advert")
@Validated
public class AdvertController extends BaseController {
private final IAdvertService service;
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!