ITeye博客

不要依赖这里 因为你有大脑

Wuaner · 共 411 篇文章

未完 java设计: naming convention | 命名规范

应该遵循的规范: 类/接口/属性名,使用名词或形容词; 方法名使用动词。 Java Naming Conventions: http://www.oracle.com/technetwork/java/codeconventions-135099.html Ixxx、Service、servieimpl、dao、daoimpl,真的有必要吗? Naming the Java Implementation Classes: http://isagoksu.com/2009/development/java/naming-the-java-implementation-classes/ http…

2012-11-20 16:45 · Java Foundation · 设计模式 · 评论(0)

未完 Java: enum 枚举

http://stackoverflow.com/questions/9850525/whats-the-use-of-enum-in-java [b]An enum is an ordinary class with a predefined and enumerable set of instances.[/b] So, if you know in advance (in compile-time) how many instances a class will have and if the instances are easily enumerable, then use an e…

2012-11-19 20:29 · Java Foundation · 评论(0)

未完 Spring MVC

Annotations for Http params: @RequestBody @PathVariable @RequestParam @ModelAttribute @ExceptionHandler & @ControllerAdvice(这个advice注解是在 spring 3.2 之后才有的) 及基于它们两个的 Spring MVC 异常处理 : 问题: spring MVC 在 json 反序列化(如通过 @RequestBody 反序列化一个 enum)出错时,只返回 400,后台无任何 log!导致错误的排查比较困难。 。。。 http://stackoverflow.c…

2012-11-15 22:41 · J2EE · 评论(0)

Redis: REmote DIctionary Server

Redis is a key-value store NoSQL database。 性能高的原因在于大部分数据都被放在内存中,所以你可以将它看成是个内存数据库。 Problems: key一定是String类型,怎么能够按照一定顺序,输出database中所有的keys?( keys * 不能保证有序) list all keys in some order? Redis Documentation: http://redis.io/documentation Redis, from the Ground Up: http://blog.mjrusso.com/2010/10/17/red…

2012-11-07 14:01 · 云计算/NoSQL/数据分析 · 评论(0)

设计:Spring动态注入implementation 、业务处理过程抽象

场景: 接口或抽象类,有多个实现/子类。使用Spring,&Autoinjected关联的是接口/抽象类,怎么让spring可以在运行时动态注入具体的实现那? 参考: How to use @Autowired to dynamically inject implementation like a factory pattern http://stackoverflow.com/questions/5725222/how-to-use-autowired-to-dynamically-inject-implementation-like-a-factory-patter How to get…

2012-11-06 13:50 · 评论(0)

Java多线程之 concurrent 并发包

Java Tutorials -> Concurrency: http://docs.oracle.com/javase/tutorial/essential/concurrency/index.html Java Concurrency Utilities: http://docs.oracle.com/javase/7/docs/technotes/guides/concurrency/index.html 作者 Doug Lea 的个人主页,里头不少好东西: http://g.oswego.edu/ http://www.vogella.com/articles/JavaConcurr…

2012-11-01 07:47 · Java Foundation · 评论(0)

JUnit 单元测试

测试的分类: http://stackoverflow.com/questions/520064/what-is-unit-test-integration-test-smoke-test-regression-test http://stackoverflow.com/questions/4904096/whats-the-difference-between-unit-functional-acceptance-and-integration-test http://stackoverflow.com/questions/3370334/difference-between-accept…

2012-10-30 12:27 · J2EE · 评论(0)

PostgreSQL

PostgreSQL Commands QuickStart: http://www.thegeekstuff.com/2009/04/15-practical-postgresql-database-adminstration-commands/ http://www.linuxweblog.com/postgresql-reference #查看 PostgreSQL 命令行工具的帮助,最有用的一个!!!! \? #重启 postgresql 服务 (ubuntu下) $ sudo service postgresql restart #登陆 PostgreSQL 命令行 (postgr…

2012-10-26 10:53 · Database · 评论(0)

Spring+BoneCP+MyBatis: maxConnectionsPerPartition为1导致的junit一直停留在获取conn阶段的问题

Spring+BoneCP+MyBatis下, 如果applicationcontex.xml中的boneCP datasource 最大连接数maxConnectionsPerPartition设为1且partitionCount也为1: <bean id="dataSourceNewsletter" class="com.jolbox.bonecp.BoneCPDataSource" destroy-method="close"> <property name="driverClass" value="#{env['jdbc.driverclassname']}"/> <property…

2012-10-20 00:11 · Dev Error · 评论(0)

Ubuntu 使用杂摘

Useful Shortcut Keys In Ubuntu Ctrl + super(即start键,就是xp下常说的windows键) + d: 显示桌面; Ctrl + Alt + t: 打开一个新的terminal; http://maketecheasier.com/useful-shortcut-keys-in-ubuntu/2008/07/14 须谨记的 terminal 命令摘录:[code=c] ctrl + d : 退出当前terminal ctrl + l : shortcut for clear ctrl + c : Kill the current process.…

2012-10-19 23:51 · Linux · 评论(0)

Hadoop

《Hadoop: The Definitive Guide》reading notes: This, in a nutshell, is what Hadoop provides: a reliable shared storage and analysis system. The storage is provided by HDFS and analysis by MapReduce. There are other parts to Hadoop, but these capabilities are its kernel. MapReduce: http://strata.oreil…

2012-09-25 19:45 · 云计算/NoSQL/数据分析 · 评论(0)

Maven:No goals have been specified for this build

执行 mvn 命令时,指定goals避免该错误。 http://www.jrmh.net/exception/showexception.asp?ID=249 https://cwiki.apache.org/confluence/display/MAVEN/NoGoalSpecifiedException

2012-09-25 10:54 · Dev Error · 评论(0)

Gerrit : Code Review Tool based on Git

Gerrit Code Review for Git: http://gerrit-documentation.googlecode.com/svn/Documentation/2.4.2/index.html git post of mine: http://wuaner.iteye.com/blog/1681983 Git workflow: http://nvie.com/posts/a-successful-git-branching-model/ http://danielkummer.github.io/git-flow-cheatsheet/ https://www.atlas…

2012-09-21 18:52 · Linux · Open Source · 评论(0)

Git : Distributed version control system

Srcs : Git Reference http://git-scm.com/docs http://www.kernel.org/pub/software/scm/git/docs/ Pro Git http://git-scm.com/book “Tracking Branches” And “Remote-Tracking Branches”: http://www.gitguys.com/topics/tracking-branches-and-remote-tracking-branches/ 在项目的 .git/config 文件里 存在 [branch ] 记录的 local…

2012-09-20 09:59 · Linux · 评论(0)

Top 20 Core Java Interview questions answers asked in Investment Bank

Very useful http://javarevisited.blogspot.sg/2011/04/top-20-core-java-interview-questions.html

2012-09-16 22:26 · 面试 · 评论(0)