- 博客(12)
- 收藏
- 关注
原创 git一些相关基本操作
1.配置git用户git config --global user.email "your email"git config --global user.name "your name"2.生成SSH公钥ssh-keygen -t rsa -C "可以写你的邮箱" 3.查看生成的公钥cat ~/.ssh/id_rsa.pub4.将生成的公钥复制到github或码云上5.连接远程仓库git remote add origin[可换成其他名字] 远程仓库地址6.拉取远程项目到本地
2022-03-20 09:45:08
721
转载 mvn install:install-file -DgroupId=com.aliyun -DartifactId=aliyun-sdk-vod-upload 手动安装jar包报错
今天在手动给本地maven仓库安装jar包时执行mvn install:install-file -DgroupId=com.aliyun -DartifactId=aliyun-sdk-vod-upload -Dversion=1.4.14 -Dpackaging=jar -Dfile=aliyun-java-vod-upload-1.4.14.jar命令时出现了如下报错[INFO] Scanning for projects...[INFO] ------------------------
2022-01-03 21:52:42
730
原创 【专题四】求二叉树深度的递归与非递归写法
//求二叉树深度 递归写法int deep1(BTNode *T){ if(T==NULL) return 0; int lhight = deep1(T->lchild)+1;//左子树高度 int rhight = deep1(T->rchild)+1;//右子树高度 return lhight>rhight?lhight:rhight; //返回最大的高度 } //求二叉树深度 非递归写法 /**算法思想:设置一个level指针指向当前遍历的层数,
2021-09-08 23:31:29
259
1
原创 【专题三】二叉树层序遍历
void level(BTNode *T){ BTNode *que[maxSize],*p = T; //循环数组 BTNode *q;//用来接收出队的结点 int front,rear; front = rear = 0; if(p!=NULL) { rear = (rear+1)%maxSize; que[rear] = p;//根结点先入队 while(front!=rear) //如果队列不为空,则迭代数组内的结点 { front = (front+1)%m
2021-09-08 22:59:03
98
原创 【专题二】二叉树求叶结点、单分支结点、双分支结点的个数
//求双分支结点数int Dsons(BTNode *T){ if(T==NULL) return 0; else if(T->lchild!=NULL&&T->rchild!=NULL) return Dsons(T->lchild)+Dsons(T->rchild)+1; else return Dsons(T->lchild) + Dsons(T->rchild); } //求单分支结点数int Ssons(BTNode *T
2021-09-08 22:46:14
3358
原创 【专题一】二叉树交换左右子树
void swap(BTNode *T){ if(T==NULL) return; swap(T->lchild); swap(T->rchild); BTNode *p = T->lchild; T->lchild = T->rchild; T->rchild = p;}
2021-09-08 22:40:03
155
原创 Could not autowire. No beans of ‘UserMapper‘ type found
错误:Intellij Idea开发工具用@Autowired注入userMapper时报出如下错误。Could not autowire. No beans of ‘UserMapper’ type found解决办法:在Intellij I中设置:Settings - Editor - Inspections - Spring - Spring Core - Code - Autowiring for Bean Class - disable(不可用)...
2021-03-15 23:04:32
1347
原创 启动MongoDB服务 net start MongoDB 服务名无效错误
问题原因:没有用管理员身份运行cmd。解决办法:用管理员身份运行cmd,然后cmd进入MongoDB安装目录下的bin目录,再次执行net start MongoDB
2021-03-09 08:53:45
248
原创 Error parsing INI config file: the argument (‘true聽‘) for option ‘logappend‘ is invalid. Valid choic
**背景:windows环境下cmd命令行执行安装MongoDB时提示**Error parsing INI config file: the argument ('true聽') for option 'logappend' is invalid. Valid choices are 'on|off', 'yes|no', '1|0' and 'true|false'try 'mongod --help' for more information报错原因:乱码导致,将MongoDB的配置文件mo
2021-03-09 08:48:12
484
原创 有关SpringMVC返回json数据时报错:No converter found for return value of type的解决方案
这个错误信息已经说的很清楚了:就是没有发现该返回类型的转换器,也就是说,当我们想让springmvc自动的帮我们给返回的数据转为json数据时,springmvc并没有成功的给我们返回的数据转为json对象。问题检查:1.检查springmvc的配置,如果是自己手动配置转换器,看一下有没有正确的配置json转换器;如果是springmvc自动配置,那检查一下springmvc配置中有无开启mv...
2020-03-09 17:26:45
852
2
原创 idea报错Method com/mchange/v2/c3p0/impl/NewProxyResultSet.isClosed()Z is abstract
最近在整合ssm时进行单元测试后出现以下错误,最后经过尝试,发现出现这个错误的原因是引入c3p0的ar包有问题。错误日志:java.lang.AbstractMethodError: Method com/mchange/v2/c3p0/impl/NewProxyResultSet.isClosed()Z is abstractat com.mchange.v2.c3p0.impl.NewP...
2020-01-30 18:04:53
3393
1
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人