![](https://img-blog.csdnimg.cn/20201014180756923.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
问题随记
空の鱼
这个作者很懒,什么都没留下…
展开
-
git push时报错
报错:hint: Updates were rejected because the remote contains work that you dohint: not have locally. This is usually caused by another repository pushinghint: to the same ref. You may want to first...原创 2019-12-03 18:00:16 · 612 阅读 · 0 评论 -
使用gitbook+Markdown写帮助文档时,发布后,有些格式不显示问题
1.使用gitbook+Markdown写帮助文档时,有些格式,预览时正确,一发布就不对1)${{env.name.stdout}},,发布后只显示$,,解决办法:原创 2020-01-13 14:24:15 · 674 阅读 · 0 评论 -
SpringBoot在@Test测试时@Autowired注入无效,报空指针
在@Test测试时,如下代码报错:java.lang.NullPointerException,注入的coverGroupService为空。原创 2022-11-09 11:30:03 · 3737 阅读 · 0 评论 -
由于改密码导致git push等失败,解决办法(mac)
重新设置用户git config -–global user.name "xxx" git config –-global user.email "xxx@xxx.com" 在push时输入新的密码即可原创 2020-04-23 16:06:18 · 1774 阅读 · 1 评论 -
git忽略规则:IDEA项目git push时,把.idea文件夹一起提交了,再提交时一直出现modified: .idea/workspace.xml
1.若没有误提交,在项目中添加.gitignore文件设置要忽略的文件或文件夹:.idea/*.imltarget/然后在push项目,这样不会把.idea文件夹提交到远端。2.如果已经把.idea文件夹一起提交了,需要将远端提交的文件给删掉,删除指令为:git rm -r --cached .idea删除后,载在项目中添加 .gitignore文件设置要忽略的文件或文...原创 2019-12-25 17:31:07 · 1695 阅读 · 0 评论 -
mac 本地k8s命令报错:The connection to the server localhost:8080 was refused - did you specify the right ho
mac 本地装的docker 自带的k8s,之前一直没问题,突然有一次使用k8s命令时报错:The connection to the server localhost:8080 was refused - did you specify the right host or port?kubectl get node //这样就报错命令中指定config文件就没问题:kubectl --kubeconfig ./config get node //这样就ok解决方法:unset ...原创 2021-07-23 11:00:27 · 1494 阅读 · 0 评论 -
Golang json: cannot unmarshal object into Go value of type错误
发送post请求时,发送的data是json形式,返回的错误是:Golang json: cannot unmarshal object into Go value of type。。。因为JSON Objec无法反序列化到[]string,需改为:{"Name":"lepig", "Age":100}是JSON Object,无法反序列化到[]string,改为用["a","b","...原创 2019-08-22 14:01:04 · 40222 阅读 · 3 评论 -
由bash转到zsh后,遇到的问题
1.当使用git branch查看分支时,该行为变得和git branch|less的行为一样解决办法:运行如下命令即可git config --global pager.branch false2. 之前安装配置好的mvn命令不能用,报错了zsh: command not found: mvn原因: zsh的配置文件没有加载~/.bash_profile的配置项。...原创 2019-12-25 10:59:55 · 2040 阅读 · 0 评论 -
mybatis时间自动写入数据库时,差8h或非24小时制的解决方法
解决办法:修改配置文件,连接数据库的配置后面追加:serverTimezone=GMT%2B8。2、自动写入数据库的时间和真实事件查了8h,或非24h制。1、实现数据库时间字段自动填充当前时间。原创 2022-11-17 18:13:54 · 1613 阅读 · 1 评论