This commit is contained in:
parent
f261d485a9
commit
d677e7c48e
|
|
@ -10,6 +10,7 @@ private Long id;
|
||||||
|
|
||||||
解决方案,将controller层中新增和更新接口中的判空改至实体类层,在controller层只需要添加@Validated注解即可
|
解决方案,将controller层中新增和更新接口中的判空改至实体类层,在controller层只需要添加@Validated注解即可
|
||||||
|
|
||||||
|
|
||||||
```java
|
```java
|
||||||
@PostMapping({"/login"})
|
@PostMapping({"/login"})
|
||||||
public AjaxResult test(@Validated EleUser eleUser){
|
public AjaxResult test(@Validated EleUser eleUser){
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue