最新回答 / weixin_慕圣4223348
把Girl girl=girlRepository.getOne(id); 改成Girl girl = girlRepository.findById(id).get();
2019-06-25
最新回答 / 慕移動4453724
@NotNull:不能為null,但可以為empty@NotEmpty:不能為null,而且長度必須大于0@NotBlank:只能作用在String上,不能為null,而且調用trim()后,長度必須大于0
2019-05-17
已采納回答 / 元氣滿滿來學習
controller最上面的注解@RestController中包含了@RequestBody,@RequestBody是將HTTP請求正文插入方法中,使用合適的HttpMessageConverter將請求體寫入對象。---人話就是@RequestBody會把前臺傳來的參數對應到對象里,就有了一個有屬性值的Girl對象。? ?39、40可以去掉。
2019-05-12
最新回答 / ranckNaNa
估計是這個地方沒匹配到
@After("execution(public?*?com.ranck.study.controller.StudentController.user(..))")我最近在學習這些東西,有興趣可以看我的代碼,commit?https://github.com/ranckprogram/spring-boot-study/commit/c62c99f89b428c94888329cd4b1b3413ea186922
2019-04-26