摘要:
进行注册时,我们在后端编写vo接受前端数据,并使用JSR303进行数据校验 当前端通过表单提交数据时,我们的后端处理如下: @Valid表示这个数据要被校验 BindingResult可以收集JSR303的错误 Model给前端页面发送数据 前端处理如下: 判断errors是否为空,不为空我们就取出 阅读全文
posted @ 2023-02-09 23:11
不是孩子了
阅读(270)
评论(0)
推荐(0)
摘要:
当我们使用路径映射时 package com.gulimall.authserver.config; import org.springframework.context.annotation.Configuration; import org.springframework.web.servlet 阅读全文
posted @ 2023-02-09 22:48
不是孩子了
阅读(47)
评论(0)
推荐(0)

浙公网安备 33010602011771号