bug
孤独的小饼干
练习时长两年半的
展开
-
springboot启动报错Failed to configure a DataSource: ‘url‘ attribute is not specified and no embedded
问题描述:新建的springboot项目启动报错Failed to configure a DataSource: ‘url’ attribute is not specified and no embedded datasource could be configured.完整版报错信息:原因分析:Failed to configure a DataSource: ‘url’ attribute is not specified and no embedded datasource could原创 2020-10-26 17:03:28 · 566 阅读 · 0 评论 -
zsh: command not found: brew 报错解诀办法
项目场景:在使用命令行安装东西的时候提示错误提示:zsh: command not found: brew解决方案:Mac安装 homebrew使用一下命令安装,/bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)"使用中科大的。...原创 2020-10-20 10:20:19 · 19801 阅读 · 4 评论 -
String index out of range: -4
项目场景:在对字符串进行操作的时候报了这个错,String index out of range: -4原因分析:这个错误的意思是字符串的索引越界了一般都是在对字符串进行操作的时候引起的,例如String str = "123"; //字符串的长度是3str.substring(0,str.length()-4); //回报错String index out of range: -4报这个错误是由于对字符串进行操作的过程中抛出了StringIndexOutOfBoundsExc原创 2020-10-15 14:08:02 · 19721 阅读 · 0 评论 -
Cause: java.lang.IllegalArgumentException: Mapped Statements collection does not contain value for
项目场景:使用mybatis查询列表的时候报了这个错问题描述:使用mybatis返回一个列表,mybatis各项配置没有错,但是mybatis运行报错了。下面是报错信息: Cause: java.lang.IllegalArgumentException: Result Maps collection does not contain value for com.idh.project.app.mapper.AppSysUserMapper.deptResult at org.mybatis原创 2020-10-15 13:31:18 · 827 阅读 · 0 评论 -
linux报错 ifconfig: command not found
问题描述:输入命令ifconfig报错 ifconfig: command not found 具体报错信息看下图原因分析:出现这个问题的原因绝大多数情况下可能都是系统没有附带ipconfig,例如你安装的是CentOS最小安装包模式。这个时候只需要我们使用命令安装ipconfig即可。解决方案:使用命令安装 ipconfig 即可运行命令安装ipconfigsudo yum install net-tools中间有提示的时候输入y。测试:命令行输入ifconfig原创 2020-10-13 14:58:24 · 798 阅读 · 0 评论 -
centos sudo: command not found 报错解决办法
问题描述:使用docker安装centos之后,在centos里执行命令报错,sudo: command not found原因分析:本来以为默认linux的安装会默认安装sudo命令的,然后/etc目录中也会有一个文件sudoers,但实际上,sudo命令并不会被minimal的模式下被安装。解决方案:使用yum -y install sudo 命令来安装sudo ,安装完成之后sudo命令就可以用了。然后etc目录下会多一个sudoers的文件。yum -y install sudo原创 2020-10-13 14:28:46 · 4599 阅读 · 0 评论