Wider Github and Zhihu
The main div for GitHub and Zhihu is too narrow, which makes my high-resolution screen not that useful. In this case, I update some exiting stylish script to improve.
The main div for GitHub and Zhihu is too narrow, which makes my high-resolution screen not that useful. In this case, I update some exiting stylish script to improve.
12Exception in thread "main" com.fasterxml.jackson.databind.exc.InvalidDefinitionException: Cannot find a (Map) Key deserializer for type [simple type, class XXXX]
In recent times, I did a lot practise of micro-service with spring boot. And handled a lot of JSON(Jackson) related serialization and deserialization issues. In this post, I will share some tricky how to “fix” Circular References.
在做服务器端API开发的时候,如何保持文档的更新是一个比较头疼的问题。试过写成word文档,缺点很明显: 更新不及时 不便于查阅 也试过用其他的在线API管理工具,太懒了,总是无法保持更新。而且大多数服务还是收费的。
这篇文章将简单介绍一下如何用Jersey(DropWizard)在一次Request中接受多个文件。其实Google一下,SO上会有很多回答,只是在这边献丑一下。
前段时间趁着参加一个无聊活动的过程中折腾了一下OpenShift,即使有一些不足,但是感觉它比我想象的好用。底下就扯扯我是瞎折腾过程中得经验。
其实下面这些个assert语句都可以通过junit测试。 [email protected] void integerValueOfTest() { Assert.assertTrue(Integer.valueOf(-128) == Integer.valueOf(-128)); Assert.assertFalse(Integer.valueOf(128) == Integer.valueOf(128)); Assert.assertTrue(Integer.valueOf(127) == Integer.valueOf(127)); Assert.assertTrue(Integer.valueOf(1) == Integer.valueOf(1)); Assert.assertFalse(Integer.valueOf(1000) == Integer.valueOf(1000));}
这是我在StackOverflow上提的第一个问题:Why Objects.hash() returns different values for the same input?
之前博客一直以纯静态的方式托管在GitHub Page里面(是基于Hexo的),遗憾的是 百度蜘蛛频繁乱爬,导致GitHub对它采取了屏蔽。(参考:解决 Github Pages 禁止百度爬虫的方法与可行性分析)另外这篇文章末尾给出了一个解决该问题的可行方法,但是我个人没有试。 GitHub Page虽然支持自定义域名,但是对https支持的不好(这是一个次要的理由)。
加密是一个争论无止境的话题,服务器端数据保存加密,数据传输加密,等等。在这篇文章我就简单说说我这么多年来在服务器端保存密码的方法进化史。