![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
问题
重生之我是一名程序员
IN IT && WIN IT !
展开
-
centos不能ping通github.com
centos不能ping通github.com问题描述如题解决方案编辑/etc/hosts 文件加入 192.30.255.113 github.com 即可即:[root@startsky ~]# cat /etc/hosts127.0.0.1 localhost localhost4.localdomain4::1 localhost localhost6.localdomain6192.30.255.113 github.com...转载 2020-06-13 16:17:57 · 3525 阅读 · 1 评论 -
面试-线程交替打印
面试-线程交替打印给定两个线程,交替输出,如 t1-1, t2-1,t1-2,t2-2…解决方案使用 volatile使用 wait/notify使用 volatilepublic class VolatileAltPrint { private int count; private volatile boolean flag = true; public VolatileAltPrint(int count) { this.count = c转载 2020-05-16 22:06:17 · 149 阅读 · 0 评论 -
mybatis - mybatis保存日期类型和从数据库读取日期不一样
mybatis - mybatis保存日期类型和从数据库读取日期不一样问题描述现有 domain 为 OrderDo:class OrderDo{ //.... private Date gmtCreate;}使用 mybatis 插入数据库成功后, 然后查询已经插入的数据,发现查询出来的日期比当前时间还要超前,调试了半天才发现,应该是时区的问题 >_< , 心中无...原创 2020-04-04 08:39:13 · 677 阅读 · 0 评论 -
java.nio.file.InvalidPathException: Illegal char `xxx` at index 2
java.nio.file.InvalidPathException: Illegal char <:> at index 2问题描述在使用java.nio中的Files.walkFileTree(Path,FileVisitor)时,抛出的异常解决方案原因是传入的Path的问题处理:getPath().substring(1)...原创 2020-04-03 09:47:05 · 10542 阅读 · 1 评论 -
微信环境中base64图片不能正常保存
微信环境中base64图片不能正常保存浏览器中查看 base64的图片能正常保存,但是在微信环境中保存之后 却是一张黑图什么原因呢??转载 2019-04-13 16:16:54 · 2965 阅读 · 1 评论