v1.0 beta版本 点击写文章,再点击所有文章会出现
分析后得出文章标题和内容不能为空
控制台报错内容是
org.springframework.web.bind.MethodArgumentNotValidException: Validation failed for argument [0] in public run.halo.app.model.vo.PostDetailVO run.halo.app.controller.admin.api.PostController.createBy(run.halo.app.model.params.PostParam) with 2 errors: [Field error in object 'postParam' on field 'title': rejected value [null]; codes [NotBlank.postParam.title,NotBlank.title,NotBlank.java.lang.String,NotBlank]; arguments [org.springframework.context.support.DefaultMessageSourceResolvable: codes [postParam.title,title]; arguments []; default message [title]]; default message [文章标题不能为空]] [Field error in object 'postParam' on field 'originalContent': rejected value []; codes [NotBlank.postParam.originalContent,NotBlank.originalContent,NotBlank.java.lang.String,NotBlank]; arguments [org.springframework.context.support.DefaultMessageSourceResolvable: codes [postParam.originalContent,originalContent]; arguments []; default message [originalContent]]; default message [文章内容不能为空]]