摘要: element的tree树形选择器 需要把父id 和子id都给后端 // 这个可以父和子节点id都i获取 menusIds: this.$refs.tree.getHalfCheckedKeys().concat(this.$refs.tree.getCheckedKeys()) 后端: publi 阅读全文
posted @ 2020-11-26 17:08 sailorj 阅读(137) 评论(0) 推荐(0)
摘要: 在学校学到了什么。。 你写的项目案例是什么做的。实际项目你做什么东西,能描述一下你做的东西。 前端:bootstrap 是什么。vue生命周期,vue有哪些子例。html5样式。axios的了解。 后端:后端spring的哪些组件,都有哪些特点、优点、缺点。aop、注解、核心类库、spring be 阅读全文
posted @ 2020-11-24 14:26 sailorj 阅读(18) 评论(0) 推荐(0)
摘要: 方法 Map<String,String> 方法名{ Map<String, String> map = new HashMap<String, String>(); map.put("code", "400"); map.put("message", "生成订单失败,课程库存已经没了"); ret 阅读全文
posted @ 2020-11-23 17:57 sailorj 阅读(2253) 评论(0) 推荐(0)
摘要: @Transactional public int addOrUpdate(SysStudent sysStudent) { sysStudentDAO.save(sysStudent); redisService.delete("student" + sysStudent.getId()); Se 阅读全文
posted @ 2020-11-21 15:49 sailorj 阅读(318) 评论(0) 推荐(0)
摘要: 1.query方式传参和接收参数 传参: this.$router.push({ path:'/xxx' query:{ id:id } }) 接收参数: this.$route.query.id 注意:传参是this.$router,接收参数是this.$route,这里千万要看清了!!! 2.p 阅读全文
posted @ 2020-11-20 17:32 sailorj 阅读(616) 评论(0) 推荐(0)
摘要: SpringBoot监听redis过期key redis事件监听及在订单系统中的使用 阅读全文
posted @ 2020-11-15 22:08 sailorj 阅读(95) 评论(0) 推荐(0)
摘要: 阿里云服务器CentOS8.2安装MySQL5.7https://blog.csdn.net/evil_wdpp/article/details/107709376 设置防火墙放行 firewall-cmd --zone=public --add-port=3306/tcp --permanent 阅读全文
posted @ 2020-11-14 15:36 sailorj 阅读(132) 评论(0) 推荐(0)
摘要: Uncaught (in promise) Error: Request failed with status code 404 找不到这个url。要么是前端的请求写错了,要么后端写错了。 这次是 @PostMapping("api/admin/message/send") 这里少了个/ 加上去就好 阅读全文
posted @ 2020-11-11 22:00 sailorj 阅读(5865) 评论(0) 推荐(0)
摘要: Shiro获取当前登录的用户信息,User是ream中登录时放进去的对象信息 User user = (User) SecurityUtils.getSubject().getPrincipal(); 阅读全文
posted @ 2020-11-02 15:50 sailorj 阅读(2037) 评论(0) 推荐(0)
摘要: Attempted to serialize java.lang.Class: java.lang.String. Forgot to register a type adapter? 尝试序列化java.lang.Class: java.lang.String. 忘记注册类型适配器? 找了好久好久 阅读全文
posted @ 2020-09-04 21:41 sailorj 阅读(2038) 评论(0) 推荐(0)