自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(50)
  • 收藏
  • 关注

原创 vue跳转同一路由页面不跳转

跳转同一路由,路由改变了,页面不刷新。路由改变页面不刷新

2022-03-24 15:36:57 2064

原创 org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.type.TypeException:

org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.type.TypeException: Could not set parameters for mapping: ParameterMapping{property='userId', mode=IN, javaType=class java.lang.Long, jdbcType=null, numericScale=null, resultM

2022-03-22 20:38:45 399

原创 org.springframework.jdbc.BadSqlGrammarException:

org.springframework.jdbc.BadSqlGrammarException:

2022-03-20 19:59:56 777

原创 RabbitMQ更换Virtual Hosts后若不存在此Virtual Hosts会报错

连接rabbitmq时若Virtual Hosts不存在,则报错

2022-03-17 15:23:35 2322

原创 Vue3动态获取浏览器窗口高度

vue3动态获取浏览器高度,

2022-03-16 17:33:06 3076 1

原创 RabbitMQ 简单模式

RabbitMQ简单模式__读完队列所有消息__设置消息头__获取消息头

2022-03-14 11:24:19 2774

原创 java.lang.NullPointerException: null

java.lang.NullPointerException: null

2022-03-14 10:30:59 974

原创 RabbitMQ--Fanout模式__获取头信息__获取队列个数

RabbitMQ--Fanout模式,获取头信息,获取队列个数

2022-03-13 19:32:47 2017

原创 Vagrant常用命令

Vagrant常用命令 vagrant box list 查看目前已有的box vagrant init [centos/7] 初始化 vagrant up 启动虚拟机(首次会下载) vagrant ssh ssh登录虚拟机 vagrant suspend 挂起虚拟机 vagrant reload 重启虚拟机 vagrant halt 关闭虚拟机 vagrant status 查看虚拟机状态 vagrant d.

2022-01-27 18:24:40 961

原创 Vue上传图片并实时显示

<div class="line-two" :style="driver ? 'display: none': ''"> <div class="line-two-one" <div class="showImgContent"> <img :src="imgSrc" alt=""> </div> <input type="file" title="请选择图片" @c.

2022-01-22 13:21:31 1167

原创 runtime-core.esm-bundler.js?5c40:6620 [Vue warn]: Unhandled error during execution of native event h

出现原因:变量名重复解决方法:检查变量,去除重复。总之:出现的原因就是你变量有重复定义,导致死循环

2022-01-21 17:15:15 4725

原创 VueCLI 接入Vue-Router

组件中引入vue-routerimport { useRoute, useRouter } from "vue-router"接收引进来的 const route = useRoute() const router = useRouter()使用if (resp.data.code == 200) { alert(resp.data.msg) router.push('/login')}...

2022-01-15 12:08:22 442

原创 java.lang.IllegalArgumentException: SimpleMessageConverter only supports String, byte[] and Serializ

实体类有没有序列化public class MongoDBTest implements Serializable

2022-01-12 00:01:14 199

原创 Failed to start bean ‘documentationPluginsBootstrapper‘; nested exception is java.lang.NullPointerEx

原因:springboot 版本太高解决方法:降低spring boot版本,把springboot回退到2.5.6就能正常启动

2022-01-11 00:05:48 102

原创 Error creating bean with name ‘gsonBuilder‘ defined in class path resource [org/springframework/bo

出现原因:springboot版本原因解决方法:将springboot版本升到2.6.2

2022-01-05 15:15:11 2086

原创 shiro 结合 jwt

令牌刷新机制客户端发送请求,过滤器拦截,如果客户端令牌过期,redis没有过期,重新生成新的token,保存在ThreadLocalToken类(多线程问题,防止书籍覆盖覆盖),然后执行controller,设置aop,从ThreadLocalToken中取出新的token,添加到过滤器,返回给客户端。 filter不能直接调用aop所以设置了中间类ThreadLocalToken类 (同一个线程)为什么不把生成令牌的方式写道filtet中,因为filter要操作io流,麻烦1...

2022-01-02 14:01:15 600

原创 SpringBoot集成swagger 支持jwt

添加依赖(注意swagger与springboot版本兼容)<!--添加swagger依赖 --> <dependency> <groupId>io.springfox</groupId> <artifactId>springfox-swagger2</artifactId> <version>2.9.2</version&g

2022-01-01 19:38:15 365

原创 FAILED TO RESOLVE LOADER:LESS-LOADER YOU MAY NEED TO INSTAL LIT

然后 npm install

2021-12-31 13:37:49 314

原创 Shiro简单了解

1、pom依赖<dependencies> <!-- shiro 依赖--> <dependency> <groupId>org.apache.shiro</groupId> <artifactId>shiro-core</artifactId> <version>1.7.1</version&gt

2021-12-29 23:32:22 90

原创 Spring Boot发送邮件

1、邮件发送历史和原理背景·邮件使用场景·注册验证 ·提醒、监控告警 ·网站营销 ·触发机制·安全的最后一道防线·Spring Boot介绍·约定大于配置 ·简单快速开发 ·强大的生态链 ·Spring Boot和发送邮件·邮件发送原理·邮件传输协议:SMTP协议和POP3协议 ·内容不断发展:IMAP协议和Mime协议·前置知识·会使用Spring 进行开发·对Spring Boot有一定的了解·Maven\HTML\Thymeleaf理解...

2021-12-27 22:34:10 226

原创 windows启动RabbitMQ

进入到安装目录下的sbin目录:执行:rabbitmq-plugins enable rabbitmq_management

2021-12-26 20:07:48 1871

原创 RabbitMQ简单入门

1、RabbitMQ简介及AMQP协议√RabbitMQ是一个开源的消息代理和队列服务器,用来通过普通协议在完全不同的应用之间共享数据,RabbitMQ是使用Erlang语言来编写的,并且RabbitMQ是基于AMQP协议的。√目前很多互联网大厂都在使用RabbitMQ √RabbitMQ底层采用Erlang语言进行编写 √开源、性能优秀,稳定性保障 √与SpringAMQP完美的整合、API丰富√集群模式丰富,表达式配置,HA模式,镜像队列模型 √保证数据不丢失的前提做到高可靠性、可用性 √A

2021-12-24 11:02:41 122

原创 删除GitHub中的某个文件

由于在github上不能直接删除某个文件,因此要用git命令去删除文件。如:删除emos-wx文件夹1、cmd进入当前目录输入git pull origin master把github上的文件重新拉下来,如图:git pull origin master2、输入命令dir查看目录下的文件,如下图:dir3、再输入命令git rm -r --cached image删除磁盘上的image文件,如下图:git rm -r --cached emos-wx...

2021-12-16 23:40:30 937

原创 uni-app: Failed to resolve loader: less-loader

解决方法:打开添加"less": "^3.9.0","less-loader": "^4.1.0"

2021-12-16 01:35:16 619

原创 git查看远程仓库地址

git remote -v

2021-12-15 20:12:58 3769

原创 解决github文件夹有向右的白色箭头并且不能打开的解决办法

GitHub中的文件夹出现上图情况出现原因:因为一些原因github将他视为一个子系统模块,导致在上传代码时该文件夹上传失败,并在github上显示向右的白色箭头。解决方法:1、删除这个文件中的.git文件2、执行git rm --cached [文件夹名]3、执行git add .4、执行git commit -m "commit msg"5、执行git push origin [branch_name]...

2021-12-15 20:10:46 1233

原创 Error starting ApplicationContext. To display the conditions report re-run your application with ‘de

spring boot整合swagger:spring boot 使用了2.6,swagger使用了2.9.2由于两则版本不兼容,导致该错误,把spring boot降到2.5.6即可出现原因:spring boot 与 swagger版本不兼容

2021-12-14 21:32:16 249

原创 “A“ E212: Can‘t open file for writingPress ENTER or type command to continue

2021-12-14 10:38:13 182

原创 Git 全局配置之【http.postBuffer】【push失败】

报错·RPC failed; HTTP 411 curl 22 The requested URL returned error: 411 Length Requiredfatal: The remote end hung up unexpectedly原因提交的文件太大(默认是1M),导致push失败解决方案git config http.postBuffer 524288000//或全局设置git config --global http.postBuffer 2M..

2021-12-11 23:48:29 3641

原创 --- maven-resources-plugin:3.2.0:resources (default-resources) @ ja ---[INFO] Using ‘UTF-8‘ encodi

解决方法:pom.xml添加<plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-resources-plugin</artifactId> <version>2.6</version></plugin>具体位置

2021-12-11 18:19:57 891 2

原创 Exception during pool initialization.com.mysql.cj.jdbc.exceptions.CommunicationsException: Communic

连接云服务器出现错误

2021-12-11 13:07:15 1958 1

原创 Vue引入normalize.css

直接引入

2021-12-04 20:27:03 607

原创 date_sub()函数,curdate()函数

date_sub()函数定义和用法DATE_SUB() 函数从日期减去指定的时间间隔。curdate()函数定义和用法CURDATE() 返回当前的日期。

2021-12-02 20:46:56 805

原创 Git 提交代码步骤

第一步git status 查看当前状态第二步git add .第三步git commit -m "提交信息"第四步git pull 推送到远程仓库

2021-11-25 20:13:31 162

原创 Git 报错 refname refs/heads/main not found

当执行 git branch -M main报错:refname refs/heads/main not found解决方法执行:git add .执行:git commit -m "init"然后再执行:refname refs/heads/main not found如果执行git commit -m "init"报错:to set your account's default identity.Omit --global to set th..

2021-11-24 21:49:37 1054

原创 MySQL查看当前日期和时间

select now();select current_date;

2021-11-17 20:15:03 745

原创 axios 删除操作时往往需要对url拼接数据,然后发送请求

拼接格式如下 const deleteUser = (id:number) =>{ axios({ method:'Delete', url: `http://localhost:8880/user/${id}`}) .then() .catch() }注意:url用反引号(Tab上面的)...

2021-11-01 17:30:25 457

原创 Vue axios 请求封装思想与实战演练(Element UI)(请求参数传递)

封装思想,封装到极致1、axios初级封装2、baseURL映射配置3、封装一个post请求,用于添加学生信息4、element ui表单5、点击添加时间6、请求成功6、数据库查找信息...

2021-10-28 22:36:35 78

原创 Vue #default=“scope“ (Element UI) 传值

注意:写法:scope.row.name,row必写

2021-10-26 21:34:15 6497 3

原创 (IDEA) Error : java 不支持发行版本5

1、点击2、看看两个是不是和你的jdk版本相对应(两个都要相对应)3、这个两个也需要和你的jdk版本相对性

2021-10-26 11:19:18 49

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除