![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
日常问题
半路出家的码农小王
偶尔高产,偶尔懒,全凭灵感
展开
-
上传照片到阿里云OSS服务器,回显报403错误
在oss上打开公共读权限,如下图: 图片能够正常回显了原创 2022-12-06 23:02:54 · 2243 阅读 · 2 评论 -
阿里云OSS依赖无法导入的问题
版本背景:springboot:2.4.12,spring-cloud:2020.0.1在使用阿里云对象存储OSS服务时候,根据官方参考文档:aliyun-spring-boot/aliyun-spring-boot-samples/aliyun-oss-spring-boot-sample at master · alibaba/aliyun-spring-boot · GitHub出现依赖无法下载的问题,无maven配置问题,编译报如下问题 添加版本后,无编译错误,但是运行仍会报错,如下:解决:更原创 2022-12-04 14:09:19 · 1670 阅读 · 0 评论 -
el-tree报TypeError: Cannot read properties of undefined (reading ‘getCheckedNodes‘)解决
主要是少了一行代码,加上ref="tree"即可。原创 2022-12-02 22:39:12 · 2874 阅读 · 0 评论 -
解决springboot上传大文件失败的问题
解决springboot上传大文件失败的问题原创 2022-11-22 23:48:44 · 583 阅读 · 0 评论 -
Linux修改用户主目录(解决修改用户主目录后bash环境异常问题)
2.通过root用户修改/etc/passwd文件中的主目录为/cib。4.把原目录/home/cib下的4个隐藏文件拷贝到/cib目录。5.退出后重新登陆cib用户发现bash环境正常了。1.cib用户当前主目录为/home/cib。3.切换到cib用户,发现bash环境异常。目的:将cib用户的主目录由。原创 2022-11-22 23:38:30 · 1143 阅读 · 0 评论 -
No Feign Client for loadBalancing defined. Did you forget to include spring-cloud-starter-loadbalanc
【代码】No Feign Client for loadBalancing defined. Did you forget to include spring-cloud-starter-loadbalancer。原创 2022-09-06 22:52:05 · 1126 阅读 · 1 评论 -
Docker启动报错:Failed to chown socket at step GROUP: No such process
docker启动报错:Failed to chown socket at step GROUP: No such process原创 2022-08-09 08:36:41 · 2445 阅读 · 5 评论 -
Win11上打开打开虚拟机(VMware15)时蓝屏重启
操作系统:Win11家庭版虚拟机版本:15.1在安装完虚拟机打开之前安装的系统时候,突然蓝屏重启解决方案:1.控制面板,程序与功能,启用或关闭Windows功能,勾选虚拟机平台,确定2.安装VMware16(问题原因就是虚拟机和window不兼容导致的)...原创 2022-05-04 15:29:32 · 13124 阅读 · 11 评论 -
关于防火墙导致无法访问的问题解决
关闭防火墙systemctl stop firewalld.service禁止防火墙开机启动systemctl disable firewalld.service放行端口firewall-cmd --zone=public --add-port=80/tcp --permanent重启防火墙firewall-cmd --reload原创 2022-04-10 07:00:00 · 1252 阅读 · 1 评论 -
Caused by: java.lang.ClassNotFoundException: org.hibernate.exception.SQLGrammarException
原因是spring版本和hibernate版本不匹配。原创 2022-04-03 22:20:14 · 667 阅读 · 3 评论 -
mybatis generator生成代码后如何防止自定义代码被覆盖
问题:在mybatis generator生成代码后,在此基础上加了其他自定义代码后,数据库有改动,但是不想手写实体类和dao层。项目结构:红色部分为新增部分解决:SubTblPayDao 继承 TblPayDaopackage com.mashibing.lcnpay.dao;import com.mashibing.lcnpay.entity.TblPay;@Mapperpublic interface SubTblPayDao extends TblPayDao {原创 2022-04-02 11:51:54 · 1681 阅读 · 0 评论 -
No qualifying bean of type ‘com.netflix.loadbalancer.IRule‘ available: expected single matching bean
在做灰度发布验证的时候报错如下:No qualifying bean of type 'com.netflix.loadbalancer.IRule' available: expected single matching bean but found 2: grayRule,metadataAwareRule当是觉得很奇怪,命名自己只定义了grayRule负载均衡策略规则,metadataAwareRule这个我代码中并没有。经过排查自己使用在pom中引入了Ribbon的包,该包默认会带负原创 2022-03-27 23:03:52 · 890 阅读 · 2 评论 -
新版IDEA 右下角没有小人头,增修改语法检查级别
idea 升级后发现右下角调整语法检查的小人头没了,发现调整位置了,在编辑页面滚动条位置上:右键->Customize Highlighting Level ->syntax 。原创 2022-03-25 18:32:03 · 5298 阅读 · 2 评论 -
win10怎么安装 .net framework 3.5
复制链接:http://download.windowsupdate.com/d/msdownload/update/software/updt/2015/11/microsoft-windows-netfx3-ondemand-package_421a25bf409692045d1cbfab0d99f8def8d95d3f.cab将下载的文件复制到复制到C 盘的Windows 文件夹后请在“命令提示符(管理员)”中执行下面的命令:dism.exe /online /add-package /...原创 2022-01-05 23:49:40 · 994 阅读 · 2 评论 -
解决:java.lang.IllegalArgumentException: There is no PasswordEncoder mapped for the id “null“
问题:在使用springboot + spring security,使用内存用户登录时后台报错:java.lang.IllegalArgumentException: There is no PasswordEncoder mapped for the id "null"环境:Spring boot 2.6.1 spring security 5.6.0 jkd8原因:从spring security 5.X开始,需要提供一个PasswordEncorder的...原创 2021-12-07 21:21:39 · 533 阅读 · 0 评论 -
JRebel启动报错:compile error: cannot find constructor org.zeroturnaround.javarebel.integration.spring
背景:JRebel版本:2020.2.5.1SpringBoot版本:2.5.7在启动的时候报错,信息如下:Cause by: compile error: cannot find constructor org.zeroturnaround.javarebel.integration.spring.boot.ResourceReloadingProperties(java.util.List,org.springframework.boot.env.PropertiesPropertyS.原创 2021-11-21 10:56:41 · 1605 阅读 · 0 评论 -
国密解密报错:cfca.sadk.algorithm.common.PKIException,错误码851001
国密解密过程中,cfca.sadk.algorithm.common.PKIException,错误码851001错误原因:密文错误 仔细检查密文,比如:I(大写I)与l(小写L)原创 2021-11-21 09:24:04 · 3721 阅读 · 1 评论 -
jdk重复安装,Error:Registry key ‘Software\JavaSoft\Java Runtime Environment\CurrentVersion(已解决)
win10上已经装了jdk1.7,后面重装了jdk1.8,配置好环境后,cmd运行java -version出现下列错误:Registry key 'Software\JavaSoft\Java Runtime Environment\CurrentVersion'has value '1.8', but '1.7' is required.Error: could not find java.dllError: could not find Java 2 Runtime Environme...原创 2021-11-21 01:02:35 · 3002 阅读 · 0 评论 -
idea打包时控制台中文乱码
问题:在idea中,打包时(install,package,deploy)候控制台中文乱码这主要是maven编译时编码问题导致的。在Intellij的settings中maven的run配置中设置它的VM Options为-DarchetypeCatalog=internal -Dfile.encoding=GBK这样就可以解决maven编译、打包时中文乱码的问题。...原创 2021-11-03 10:41:44 · 1085 阅读 · 1 评论