11 2021 档案
摘要:支持jsr303 spring-validator hibernate-validator是对 jsr303的实现 对于web服务来说,为防止非法参数对业务造成影响,在Controller层一定要做参数校验的!大部分情况下,请求参数分为如下两种形式: POST、PUT请求,使用requestBody
阅读全文
摘要:一:wenconfig@Configuration public class CorsConfig implements WebMvcConfigurer { @Override public void addCorsMappings(CorsRegistry registry) { registr
阅读全文
摘要:select field ,count(1) from table group by filed having count(1)>1 t 查找出你要删除的数据 delect from table where filed not in select t.field ( (select field fr
阅读全文
摘要:一:下载路径 https://golang.google.cn/dl/ 一路next 这里查看下有没有环境变量,没有的话根据上免安装路径自己配置到path里面 写一个脚本测试下安装成功没 出现如此下所示按装OK 开发工具下载 https://www.jetbrains.com/zh-cn/go/do
阅读全文
摘要:查看提交日志:git log 更新代码:git pull 查看是否有代码提交:git status j将本地代码全都提交:git add .(也可以添加文件如git add test.txt) 将本地代码合入分支并加入注释:git commit -m "提交" 将提交的代码推送到主分支:git pu
阅读全文