自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

原创 【React】eslint版本错误:a different version of eslint was detected higher up in the tree

eslint版本冲突报错:a different version of eslint was detected higher up in the tree

2022-06-13 17:31:55 475 1

原创 【Maven】本地sdk导入Maven

找到jar包所在的文件夹,打开cmd,执行以下命令:mvn install:install-file -Dpackaging=jar -DgroupId=自定义的groupId -DartifactId=自定义的artifactId Dversion=自定义版本 -Dfile=jar包名字.jar然后在依赖包里添加如下依赖:<dependency> <groupId>自定义groupId</groupId> <artifactId&g

2022-03-14 19:21:28 3851

原创 【环境搭建】CentOS7+Docker+Redis

CentOS7+Docker+Redis安装

2022-02-28 21:40:41 1155

原创 【Docker】【MySQL】MySQL一直在重启,且一直重启失败

查看错误原因:docker logs 容器idInnoDB崩溃修复出错删除/var/lib/mysql目录下的ib_logfile0和ib_logfile1重新启动就可以了rm -rf ib_logfile0rm -rf ib_logfile1详细分析MySQL事务日志(redo log和undo log) - 骏马金龙 - 博客园 (cnblogs.com)(43条消息) MLOG_CHECKPOINT缺失下紧急数据恢复_Enmotech的博客-CSDN博客

2022-02-26 11:34:03 5021

原创 【Docker】谷粒商城笔记记录:P104运行ElasticSearch容器

在Docker中运行ES感觉老师这一p讲解非常详细,因此做了笔记以供参考下载镜像文件注意ES和Kibana两个版本要统一docker pull elasticsearch:7.4.2 #存储和检索数据docker pull kibana:7.4.2 #可视化检索数据创建ES实例ElasticSearch# 设置外部挂载文件夹mkdir -p /mydata/elasticsearch/configmkdir -p /mydata/elasticsearch/data# echo这

2022-02-12 20:02:37 1283

原创 【SpringBoot】谷粒商城报错解决:P91 远程调用报错超时:java.net.SocketTimeoutException: Read timed out

解决:在商品配置文件打开feign的hystrix,设置远程调用服务的超时时间feign: hystrix: enabled: true client: config: gulimall-coupon: connectTimeout: 5000 readTimeout: 5000

2022-02-07 19:40:35 986 1

原创 【SpringBoot】谷粒商城报错解决:P84 pubsub、publish报错

(参考评论区)1、npm install --save pubsub-js2、在src下的main.js中引用:① import PubSub from ‘pubsub-js’② Vue.prototype.PubSub = PubSub

2022-02-07 19:37:55 990

原创 【SpringBoot】谷粒商城报错解决:P53 修改数据刷新后出现问号

查了一下是数据源配置出现问题,把application.yml文件里的数据源改成url: jdbc:mysql://数据库IP:3306/gulimall_pms?useUnicode=true&characterEncoding=utf-8

2022-02-07 19:35:54 542

原创 【SpringBoot】SpringBoot启动报错:Error creating bean with name ‘configDataContextRefresher‘

检查是否存在依赖版本不兼容的问题博主出错的原因在于SpringCloud和Nacos版本不对应,修改版本即可贴一个详细报错信息:org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'configDataContextRefresher' defined in class path resource [org/springframework/cloud/autoconfigu

2022-02-07 19:33:59 2646

原创 【SpringBoot】谷粒商城报错解决:P22 OpenFeign报错 No Feign Client for loadBalancing defined.

报错:No Feign Client for loadBalancing defined. Did you forget to include spring-cloud-starter-loadbalancing?因为高版本OpenFeign不再支持Ribbon了,最好的解决方法就是降版本。版本参考:Springboot:2.2.6.RELEASESpringCloud:Hoxton.SR8SpringCloud Alibaba:2.2.6.RELEASEOpenFeign:2.2.

2022-02-07 19:29:56 627 3

原创 【SpringBoot】谷粒商城报错解决:P18 Longblob找不到类型

将Longblob改成byte[]private byte[] rollbackInfo;

2022-02-07 19:27:38 882

原创 【MSP430G2553】问题记录:CCS如何调试进入中断

近期开始单片机的学习,发现单步调试的话进不了中断。经过实验证明,设置断点后,点击debug后再点一下resume就可以进入中断了。步骤1:步骤2:大功告成!

2021-09-25 19:07:58 1710

原创 【MyBatis】Loading class `com.mysql.jdbc.Driver‘. This is deprecated.

今天学MyBatis时碰到这个问题:Loading class `com.mysql.jdbc.Driver'. This is deprecated. The new driver class is `com.mysql.cj.jdbc.Driver'. The driver is automatically registered via the SPI and manual loading of the driver class is generally unnecessary.按照提示把myb

2021-09-02 18:39:02 221

原创 【SpringBoot】Maven报错Connection refused to host: 127.0.0.1

今天导包的时候出现了这个错误:java.util.concurrent.ExecutionException: java.rmi.ConnectException: Connection refused to host: 127.0.0.1; nested exception is: java.net.ConnectException: Connection timed out: connect查阅了一下,是项目用的JDK版本和Maven导入的不一样的原因。把Maven->impor...

2021-08-19 22:45:04 7902 2

原创 【Springboot】maven报错‘org.springframework.boot:spring-boot-maven-plugin:‘ not found ’

报错代码位置:<plugins> <plugin> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-maven-plugin</artifactId> </plugin></plugins>解决方法:1、加入版本号版本号一般和你springboot的版

2021-08-10 11:13:14 678

原创 【SpringBoot】KeyHolder.getKey()空指针异常

原因:需要设置preparedStatementCreatorFactory.setReturnGeneratedKeys(true);原方法:private long saveTacoInfo(Taco taco) { taco.setCreatedAt(new Date()); PreparedStatementCreator psc = new PreparedStatementCreatorFactory(

2021-01-09 12:07:13 1309 3

原创 【SpringBoot】IDEA中DevTools不自动刷新

发现DevTools添加Maven依赖后不自动刷新,网上一搜是IDEA默认不会自动编译的锅。解决方法如下:1.file->settings->Build,Execution,Deployment->Compiler 勾选下图红框中的选项:2.之后在Help->find action... 搜索Registry3.点击Registry...勾选下图红框中的选项:4.点击close后重启IDEA,大功告成!参考:https://...

2021-01-07 11:47:38 370 1

原创 【SpringBoot】报错:java.lang.NoClassDefFoundError: org/springframework/boot/ApplicationContextFactory

学习Spring实战的时候运行测试报出了这个错误,后来发现可能是springboot版本太高了,最后按书上把spring boot版本回退到2.0.4.RELESE解决了问题。<parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <ve

2021-01-03 19:30:37 1948

原创 【Android】初学笔记之menu菜单资源文件

menu布局文件夹建立于res文件夹下,里面为该程序的所有menu菜单资源文件。菜单资源文件必须使用标签作为根节点。除了标签外,还有另外两个标签用于设置菜单项和分组,这两个标签是和。标签中的部分属性: id:表示该菜单项的ID。orderInCategory:需要设置一个整数值,表示该菜单文件中该item的优先级。 如给id为test1的的orderIn

2018-01-25 18:30:25 2077

原创 【Java】错误解决笔记

关于解决求x的n次方问题可用Math中的函数Math.pow(x,n)解决,表示x^n

2017-11-27 12:10:28 176

空空如也

空空如也

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

TA关注的人

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