- 博客(4)
- 收藏
- 关注
原创 k8s容器启动时会出现应用的时间和实际时间不匹配
k8s容器启动时会出现应用的时间和实际时间不匹配,需要在docker的打包脚本(比如entrypoint.sh)中增加 以下一行命令,用来调整容器时间 cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && echo 'Asia/Shanghai' >/etc/timezone ...
2021-04-01 15:38:47 816
原创 git取消对缓存类文件的跟踪Track
如果项目开发中有人上传了不需要上传的文件,比如缓存的配置文件,或者idea的iml文件,而你想将这些文件的track删除。 可以用到以下指令将其删除: git -rm --cached xxx xxx为文件名 然后git commit,git push 随后可以更新gitIgnore文件,让其他人不会再更新这类文件。 ...
2021-04-01 15:27:43 196
原创 annotation-PostConstruct
@Component 扫描类,在方法中的函数中用@PostConstruct 注解。 package com.hengqin.life.product.proxy.tools; import javax.annotation.PostConstruct; import org.springframework.beans.factory.annotation.Value; import o...
2018-08-28 16:29:50 347
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人