- 博客(8)
- 收藏
- 关注
转载 git修改提交作者和邮箱
作用一名程序员,我们会经常混迹与不同的代码仓库,时常不同仓库会有作者信息验证。比如公司内建的gitlab一般会要求统一使用公司内部的域账号签名;github要求使用github账号签名等。因此,很容易犯在不同库中提交代码发现默认配置的author信息没有变更,结果push被拒绝。下面介绍几种常用的解决方式,当然最终还是需要养成切换代码库检查author信息的习惯,主动配置// 设置全局git co
2016-07-21 15:05:33 61567 2
转载 CurrentHashMap putIfAbsent(key,value)用法讨论
先看一段代码:public class Locale { private final static Map<String, Locale> map = new HashMap<String,Locale>(); public static Locale getInstance(String language, String country, Str
2016-07-13 17:13:56 1516 1
原创 leetcode 172. Factorial Trailing Zeroes
Given an integer n, return the number of trailing zeroes in n!.Note: Your solution should be in logarithmic time complexity.看到这道题,一开始没怎么想就直接搞的解法如下:public class Solution { public int trailingZeroes(
2016-07-12 21:27:37 277
转载 webx 表单验证
拿典型的petstore举例子,首先看一下WEB-INF的目录结构:(petstore可以在webx官网下载:http://webx.github.io/)WEB-INFO ├── common │ ├── pipeline-exception.xml │ ├── pipeline.xml │ ├── resources.xml │ ├── t
2016-07-12 09:42:38 783
原创 leetcode 102. Binary Tree Level Order Traversal
Given a binary tree, return the level order traversal of its nodes’ values. (ie, from left to right, level by level). For example: Given binary tree [3,9,20,null,null,15,7], 3 / \ 9 20 /
2016-07-11 23:00:28 295
原创 java数组去重
Given a sorted array, remove the duplicates in place such that each element appear only once and return the new length. Do not allocate extra space for another array, you must do this in place w
2016-07-09 22:47:16 439
原创 maven pom.xml报错解决
maven pom.xml报错Execution default-resources of goal org.apache.maven.plugins:maven-resources-plugin:2.6:resources failed: 解决方法: 指定eclipse的maven全局配置 Window—>Preferences–>Maven–>User Settings–>Global Se
2016-07-03 17:07:26 554
转载 webx 框架入门一
来阿里实习一个多月了,被拉着直接上新项目。由于新项目要使用webx,webx框架是淘宝的框架,比较厚重又复杂,但是性能毋庸置疑(毕竟每年双十一都挺过来了)。由于webx文档较少,基本都是阿里内部使用。在网上看了一个14年实习的师兄(现在在B2B基础架构)写的文章,觉得很有用,就收藏一下:1、快速搭建webx应用:在命令行中输入如下命令:(前提是安装了maven)详细参考webx官方文档:http:/
2016-07-01 15:51:21 8123 3
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人