- 博客(4)
- 收藏
- 关注
原创 小结springsecurity配合数据库
1.用户及权限验证用户实体类实现UserDetails重写 @Override public Collection<? extends GrantedAuthority> getAuthorities() { return authorities; } @Override public String getPassword() { return password; } @Override publ
2021-04-09 11:43:07 217
原创 总结:springboot和ssm的拦截器
springboot的拦截器:编写配置类实现拦截器接口(HandlerInterceptor),重写preHandle方法:public class MyHandlerInterceptor implements HandlerInterceptor { @Override public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) throws E
2021-03-26 20:57:35 151
转载 关于captcha验证码演示
转载:https://blog.csdn.net/dayonglove2018/article/details/106612549import com.wf.captcha.SpecCaptcha;import org.springframework.web.bind.annotation.GetMapping;import org.springframework.web.bind.annotation.RequestMapping;import org.springframework.web.bi
2021-03-25 15:03:54 1441
原创 总结:springmvc关于Ajax传值问题
第一种情况:直接在data中放json对象,后端对应字符串名称接受。第二种情况:JSON.stringfy()将json对象转为json字符串,后端用@RequestBody将json字符串赋值给User,注意此时要添加contendType: “application/json”...
2021-03-24 13:51:52 144
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人