每一年都奔走在自己热爱里

没有人是一座孤岛,总有谁爱着你

01 2021 档案

摘要:1. Vue的form表单实现下拉搜索框 2. 实现代码 在<el-select> 中,加上 filterable 即可(v-model.trim:是过滤输入的空格),clearable:输入框带清空输入内容的功能 <el-select v-model.trim="form.levelId" pla 阅读全文
posted @ 2021-01-26 17:57 helloliyh 阅读(7654) 评论(0) 推荐(1)
摘要:1. 官网解释 https://baomidou.com/pages/10c804/#abstractwrapper 2. 条件构造器关系介绍 2.1 介绍 1. 上图绿色框为抽象类abstract 2. 蓝色框为正常class类,可new对象 3. 黄色箭头指向为父子类关系,箭头指向为父类 2.2 阅读全文
posted @ 2021-01-20 09:49 helloliyh 阅读(292) 评论(0) 推荐(0)
摘要:1. 什么是WebSocket 首先,WebSocket是一种通信协议,区别于HTTP协议, HTTP协议只能实现客户端请求服务器响应的这种单向通讯, WebSocket可以实现客户端与服务器的双向通讯。 2. 最大优势 可以做到服务端主动将消息推送给客户端 3. 其余特点 1. 握手阶段采用htt 阅读全文
posted @ 2021-01-15 14:53 helloliyh 阅读(1309) 评论(0) 推荐(1)
摘要:1. 问题描述 1.1 启动Spring Boot项目时报 NoSuchBeanDefinitionExpetion 没有找到bean的实例,即spring没有实例化对象,也就无法根据配置文件执行依赖注入依赖错误 2. 问题原因 假设模块A需要引入模块B的依赖,并且需要注入模块B中的TestServ 阅读全文
posted @ 2021-01-10 20:59 helloliyh 阅读(6225) 评论(0) 推荐(1)
摘要:1. 单例模式 单例模式的定义:保证一个类仅有一个实例,并提供一个访问它的全局访问点! 单例模式应该是23种设计模式中最简单的一种模式了。它有以下几个要素: 1. 私有的构造方法 2. 指向自己实例的私有静态引用 3. 以自己实例为返回值的静态的公有的方法 单例模式5种写法-- 饿汉式单例,懒汉式单 阅读全文
posted @ 2021-01-07 16:03 helloliyh 阅读(141) 评论(0) 推荐(0)
摘要:1. 问题描述 1.1 SpringBoot项目启动成功访问任意接口都跳转到login登录页面 2. 问题原因 在 SpringBoot 项目中使用了 SpringSecurity ,这是因为在SpringBoot中,默认的Spring Security就是生效了的,此时的接口都是被保护的,我们需要 阅读全文
posted @ 2021-01-05 09:34 helloliyh 阅读(14129) 评论(0) 推荐(2)
摘要:1. 问题描述 1.1 启动Spring Boot项目时报循环依赖错误:The dependencies of some of the beans in the application context form a cycle ┌─────┐ | userServiceImpl defined in 阅读全文
posted @ 2021-01-04 16:29 helloliyh 阅读(9772) 评论(0) 推荐(0)