上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 29 下一页
摘要: 抽取组件 在script标签中引入组件 import SideMenu from "@/components/SideMenu"; 局部注册组件 components:{ "SideMenu":SideMenu } 3.在页面中引入组件 组件组成的标签名即可引入成功 父子组件传值 用:号的方式进行传 阅读全文
posted @ 2022-07-14 23:27 长情c 阅读(143) 评论(0) 推荐(0)
摘要: 当最后一页只有一条数据要进行删除时 可以发现当前页已经变了,但是呢记录为空 答案其实很简单,element-ui的分页组件在你删除最后一页数据的时候默认的还是会显示在最后一页,此时最后一页已经没有数据了,所以就显示暂无数据,需要手动去跳转到第一页或者重新刷新页面才能看到第一页的数据。 那么我们的解决 阅读全文
posted @ 2022-07-14 22:20 长情c 阅读(876) 评论(5) 推荐(1)
摘要: 安装依赖 npm i axios -S 查看axios版本 npm axios -v 封装request请求 import axios from 'axios' const request = axios.create({ baseURL: '/api', // 注意!! 这里是全局统一加上了 '/ 阅读全文
posted @ 2022-07-14 18:26 长情c 阅读(1052) 评论(0) 推荐(0)
摘要: 参考链接:https://blog.csdn.net/weixin_43740223/article/details/108491386 还是建议用knife4j这玩意报错多,还丑 阅读全文
posted @ 2022-07-14 15:59 长情c 阅读(29) 评论(0) 推荐(0)
摘要: 直接转发了,这玩意太难用了 参考链接:https://blog.csdn.net/xqnode/article/details/86557784?ops_request_misc=%257B%2522request%255Fid%2522%253A%2522165778491616782391830 阅读全文
posted @ 2022-07-14 15:51 长情c 阅读(55) 评论(0) 推荐(0)
摘要: ##无法访问后台地址 首先swagger3.0后的访问地址为:http://localhost:8080/swagger-ui/index.html 以往的2.0的访问地址是http://localhost:8080/swagger-ui.html 问题原因:其次就是2.0需要导入2个包,而3.0需 阅读全文
posted @ 2022-07-14 15:43 长情c 阅读(1356) 评论(0) 推荐(0)
摘要: ServletRequestUtils工具类 ServletRequestUtils是Spring MVC内置的一个工具类 可以看到这个工具类可以支持很多类型的设置参数值 以前获取请求参数是用过下面这种形式的 String name = request.getParameter("parameter 阅读全文
posted @ 2022-07-12 10:05 长情c 阅读(379) 评论(1) 推荐(0)
摘要: 1.引入maven坐标 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-validation</artifactId> </dependency> 2.实体类校验规则 @ 阅读全文
posted @ 2022-07-11 21:26 长情c 阅读(346) 评论(0) 推荐(0)
摘要: SpringSecurity从入门到精通 课程介绍 0. 简介 ​ Spring Security 是 Spring 家族中的一个安全管理框架。相比与另外一个安全框架Shiro,它提供了更丰富的功能,社区资源也比Shiro丰富。 ​ 一般来说中大型的项目都是使用SpringSecurity 来做安全 阅读全文
posted @ 2022-07-06 22:11 长情c 阅读(35) 评论(0) 推荐(0)
摘要: ##1.导入maven依赖 <dependency> <groupId>com.github.xiaoymin</groupId> <artifactId>knife4j-spring-boot-starter</artifactId> <version>3.0.2</version> </depe 阅读全文
posted @ 2022-07-05 19:38 长情c 阅读(110) 评论(0) 推荐(0)
上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 29 下一页