循环小数输出的坑 BigDecimal做除法时如果出现除不尽(循环小数)的情况,会抛异常: BigDecimal a = new BigDecimal("1"); System.out.println(a.divide(new BigDecimal(3))); 异常如下: 异常如下: Excepti ...
分类:
其他好文 时间:
2019-10-20 11:24:55
阅读次数:
240
一、编译yaml文件 二、创建并查看运行状态 注意点:将pod分配到指定的节点 ①为Node添加label ②将pod分配到带有指定label的node Pod操作: 删除Pod 更新Pod 三、可能遇到的问题 Error:Back off restarting failed container 解 ...
分类:
Web程序 时间:
2019-10-18 15:53:15
阅读次数:
353
MVP MVVM都源自MVC. 传统的MVC,业务逻辑放在Model层,UI在View层,Controller只是Model和View的粘合剂。 实际情况,Model层只存放从json解析的数据模型,Controller层(ViewController)有很多UI逻辑,导致Controller里面既 ...
分类:
移动开发 时间:
2019-10-16 09:49:51
阅读次数:
112
本文只讲了一件事情:软件模型中存在读模型和写模型之分,CQRS便为此而生。 20多年前, "Bertrand Meyer" 在他的《 "Object Oriented Software Construction" 》一书中提出了CQS(Command Query Seperation,命令查询分离) ...
分类:
其他好文 时间:
2019-10-11 20:19:19
阅读次数:
121
升级了iOS 13,发现代码中使用presentViewController的都变成了这样的,顶部留了一部分 查看present样式,iOS 13 默认自动适配,需要在present的时候,设置style ...
分类:
移动开发 时间:
2019-10-11 19:58:17
阅读次数:
656
系统安装使用虚拟机安装两个centos系统,在/etc/hosts里增加两行192.168.140.128 kuber-master192.168.140.129 kuber-node1 关闭防火墙systemctl stop firewalld & systemctl disable firewa ...
分类:
其他好文 时间:
2019-10-11 18:46:07
阅读次数:
193
1.别打开电源,然后到虚拟机安装文件夹内。2.找到你的虚拟机系统文件中后缀为vmx的文件,右击用记事本或者Notepad++打开。2.搜索找到vmci0.present=‘TRUE’,字段,把true改为false。3.开启虚拟机发现可以使用了。 仅供参考,欢迎指正!! ...
分类:
系统相关 时间:
2019-10-11 00:56:09
阅读次数:
200
当使用较新版本SpringBoot时,对应的 kafka-client 版本也比较新,如果使用了 2.x 以上的 kafka-client ,并且配置了 kafka ssl 连接方式时,可能会报如下异常: 该原因是因为新版本 kafka-client 会校验证书的主机名,配置忽略主机名校验即可。 配 ...
分类:
编程语言 时间:
2019-10-09 12:16:22
阅读次数:
207
Evolutionary approaches towards AI: past, present, and future 2019-10-06 07:28:13 This blog is from: https://towardsdatascience.com/evolutionary-appro ...
分类:
移动开发 时间:
2019-10-06 09:23:12
阅读次数:
89
题目描述 Given a linked list, return the node where the cycle begins. If there is no cycle, return null. To represent a cycle in the given linked list, we ...
分类:
其他好文 时间:
2019-10-05 20:32:28
阅读次数:
122