<artifactId>spring-boot-starter-validation</artifactId> ... 前)加入@Valid,就會啟動model中的validation,另外,為了要取得驗證後的結果,加入BindingResult ...
確定! 回上一頁