
那些年踩过的坑
HelloWorld_Von
入了能出才叫学会了
展开
-
记一次用maven构建时Could not resolve dependencies问题解决
最近在发布的时候遇到了一个问题,出现报错:提示就是Could not resolve dependencies。针对这个问题的博客的解决方法一大堆,大部分都是针对IDEA工具的,在此不细说。这里说的是在服务器上进行发布,你的IDEA用不了了吧!起初也是困扰了我半天,登录上仓库去看,发现依赖的jar存在着的,死活想不通原因,无赖添加了如下命令,mvn clean package -DskipTests -e -U -X一看,才发现是parent工程下载失败,原来是忘了打包parent。总结经验教原创 2022-03-16 14:31:09 · 1982 阅读 · 0 评论 -
The connection to the server localhost:8080 was refused - did you specify the right host or port?
记一次k8s报错:运行kubectl get pods提示The connection to the server localhost:8080 was refused - did you specify the right host or port?查看日志发现时kube-apiserver连不上。curl localhost:8080/api也失败命令查看systemctl status kube-apiserver发现kube-apiserver未起来,报code=exited, st原创 2020-11-17 17:29:54 · 1792 阅读 · 0 评论 -
记一次k8s处理问题No API client: no api servers specified
使用k8s工具进行kubelet get pods出现I1111 15:04:04.990022 14323 feature_gate.go:181] feature gates: map[]W1111 15:04:04.990085 14323 server.go:400] No API client: no api servers specifiedI1111 15:04:04.990292 14323 docker.go:356] Connecting to docker on un原创 2020-11-11 15:14:59 · 1661 阅读 · 0 评论 -
解决java.lang.IllegalArgumentException: Could not resolve placeholder xx.xx.addr 的问题,思路:一定是配置文件问题
今天启动SpringBoot遇到一个问题,提示java.lang.IllegalArgumentException: Could not resolve placeholder 'xx.xx.addr' in value "${xx.xx.addr}"看到这个报错以为是配置文件写的不对,就去查看bootstrap.yml文件。后来发现是IDEA的问题,在我更改工程之后,build的时候,IDEA会移除旧有的bootstrap.yml文件,重新房新的。问题就出在这儿,在target下没有新的文件。读原创 2020-06-08 17:47:08 · 4268 阅读 · 0 评论