自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

diu_brother的博客

丢哥的博客

  • 博客(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关注的人

提示
确定要删除当前文章?
取消 删除