Loading

摘要: 单独primary key Cassandra : CREATE TABLE student (firstName text , lastName text, score int, PRIMARY KEY (firstName)) Java : @PartitionKey private Strin 阅读全文
posted @ 2020-08-10 21:28 亡灵族 阅读(115) 评论(0) 推荐(0) 编辑
摘要: CQL类型对应Java类型描述 ascii String ascii字符串 bigint long 64位整数 blob ByteBuffer/byte[] 二进制数组 boolean boolean 布尔 counter long 计数器,支持原子性的增减,不支持直接赋值 decimal BigD 阅读全文
posted @ 2020-08-10 21:01 亡灵族 阅读(514) 评论(0) 推荐(0) 编辑
摘要: mvn build 出错: log: Failed to execute goal on ****** Could not find artifact org.apache.logging.log4j:log4j:jar:2.13.3 in nexus *******, try downloadin 阅读全文
posted @ 2020-07-09 16:09 亡灵族 阅读(197) 评论(0) 推荐(0) 编辑
摘要: server.xml ***component*** 后面加上 reloadable="true" web.xml <init-param> devleopment false改为 true 阅读全文
posted @ 2020-06-19 15:36 亡灵族 阅读(185) 评论(0) 推荐(0) 编辑
摘要: 项目调用的service 进行了migration,老项目的证书失效,新项目的证书也不能用,只能临时性的忽略证书认证。 在feignClient里使用以下代码 @Bean @ConditionalOnMissingBean public Client feignClient(CachingSprin 阅读全文
posted @ 2020-04-19 22:37 亡灵族 阅读(1376) 评论(0) 推荐(0) 编辑
摘要: 配了挺多次免密登录,老是忘了,备份一下 转载自知乎,如侵删。https://zhuanlan.zhihu.com/p/32279976 转载分割线 Ok,是时候写一个教程让后人不被坑了。 首先,明确一下我们要做什么,让mac连接免密码ssh连上远程的机子,一般是ubuntu系统的(就是你买的阿里云, 阅读全文
posted @ 2019-10-11 10:31 亡灵族 阅读(2632) 评论(0) 推荐(0) 编辑
摘要: 老张接个新项目,项目可是不小,好多模块。使用Intellij import new project, 结果卡在writing class中,而且mac的风扇一直转,像是要变成直升机起飞。 等啊等,intellij给出提示increase heap size,得,加大,400增到800,内存大任性。老 阅读全文
posted @ 2019-10-10 23:34 亡灵族 阅读(337) 评论(0) 推荐(0) 编辑
摘要: 在Ajax取数据时,采用$("#id").click(function(){})的方式不能正确设置监听,需要用$("#parent").on("click","id", function(){}); 参考文章: 版权声明:本文为CSDN博主「花2不谢」的原创文章,遵循 CC 4.0 BY-SA 版权 阅读全文
posted @ 2019-09-10 13:50 亡灵族 阅读(1003) 评论(0) 推荐(0) 编辑
摘要: function Map() { this.elements = new Array(); this.size = function() { return this.elements.length; }, this.isEmpty = function() { return (this.elemen 阅读全文
posted @ 2019-08-01 15:01 亡灵族 阅读(339) 评论(0) 推荐(0) 编辑
摘要: 给定一个整数数组 nums 和一个目标值 target,请你在该数组中找出和为目标值的那 两个 整数,并返回他们的数组下标。 你可以假设每种输入只会对应一个答案。但是,你不能重复利用这个数组中同样的元素。 示例: 官方这样的做法时间复杂度是o(n),但是for循环里带containKey怎么会是o( 阅读全文
posted @ 2019-03-21 10:10 亡灵族 阅读(186) 评论(0) 推荐(0) 编辑