随笔分类 -  00.Java & j2ee

摘要:Workbench User Guide > TasksRunning EclipseD:\devProgram\eclipse-rcp-indigo-SR2-win32-x86_64\eclipse\eclipse.exe -vmargs -Xms512M -Xmx1024M -XX:MaxPermSize=256MD:\devProgram\eclipse-rcp-indigo-SR2-win32-x86_64\eclipse\eclipse.exe -data c:\MyWorkspace -vmargs -Xms512M -Xmx1024M -XX:MaxPermSize=256 阅读全文
posted @ 2012-07-05 00:18 庚武 阅读(521) 评论(0) 推荐(0) 编辑
摘要:http://www.cloudgarden.com/jigloo/IntroductionNote: Jigloo is free for non-commercial use, but purchase of a Professional License is required for commercial use (after successfully evaluating Jigloo).CloudGarden's Jigloo GUI Builder is a plugin for theEclipseJava IDE andWebSphere Studio, which a 阅读全文
posted @ 2012-07-02 13:46 庚武 阅读(1379) 评论(0) 推荐(0) 编辑
摘要:from:http://www.rgagnon.com/javadetails/java-0438.htmlSome notes from A. Gonzales about String.split()Special cases using String.split():public class StringSplit { public static void main(String args[]) throws Exception{ System.out.println( java.util.Arrays.toString( " s".split(" ... 阅读全文
posted @ 2012-06-10 10:29 庚武 阅读(2366) 评论(0) 推荐(0) 编辑
摘要:http://files.cnblogs.com/wucg/eclipse-folding-plugin.ziphttp://stackoverflow.com/questions/6940199/how-to-use-coffee-bytes-code-foldingFirstly, you'll need to configure Coffee Bytes Java folding as the folding scheme to use, and then enable User Defined Regions, as shown below.Secondly, you' 阅读全文
posted @ 2012-06-06 18:00 庚武 阅读(2948) 评论(1) 推荐(0) 编辑
摘要:from : Hibernate In Action:The load() method is older; get() was added to Hibernate’s API due to userrequest. The difference is trivial:■ If load() can’t find the object in the cache or database, an exception isthrown. The load() method never returns null. The get() method returnsnull if the object 阅读全文
posted @ 2012-06-04 03:06 庚武 阅读(237) 评论(0) 推荐(0) 编辑
摘要:Hibernate created a new language named Hibernate Query Language (HQL), the syntax is quite similar to database SQL language. The main difference between isHQL uses class name instead of table name, and property names instead of column name.HQL is extremely simple to learn and use, and the code is al 阅读全文
posted @ 2012-06-04 02:28 庚武 阅读(1431) 评论(0) 推荐(0) 编辑
摘要:OverviewjTDS is an open source 100% pure Java (type 4) JDBC 3.0 driver for Microsoft SQL Server (6.5, 7, 2000, 2005 and 2008) and Sybase (10, 11, 12, 15). jTDS is based on FreeTDS and is currently the fastest production-ready JDBC driver for SQL Server and Sybase. jTDS is 100% JDBC 3.0 compatible, s 阅读全文
posted @ 2012-05-28 21:41 庚武 阅读(1167) 评论(0) 推荐(0) 编辑
摘要:http://java.decompiler.free.fr/The “Java Decompiler project” aims to develop tools in order to decompile and analyze Java 5 “byte code” and the later versions.JD-Coreis a library that reconstructs Java source code from one or more “.class” files. JD-Core may be used to recover lost source code and e 阅读全文
posted @ 2012-05-26 21:25 庚武 阅读(308) 评论(0) 推荐(0) 编辑
该文被密码保护。
posted @ 2012-05-25 13:58 庚武 阅读(5) 评论(0) 推荐(0) 编辑
摘要:from:http://www.2cto.com/kf/201110/106826.html使用注解来配置Action的最大好处就是可以实现零配置,但是事务都是有利有弊的,使用方便,维护起来就没那么方便了。要使用注解方式,我们必须添加一个额外包:struts2-convention-plugin-2.x.x.jar。虽说是零配置的,但struts.xml还是少不了的,配置如下:<?xml version="1.0" encoding="UTF-8" ?><!DOCTYPE struts PUBLIC "-//Apache So 阅读全文
posted @ 2012-04-25 01:24 庚武 阅读(468) 评论(0) 推荐(0) 编辑
摘要:from:http://wing123.iteye.com/blog/352596<!--指定Web应用的默认编码集,相当于调用HttpServletRequest的setCharacterEncoding方法--><constantname="struts.i18n.encoding"value="UTF-8"/><!--该属性指定需要Struts2处理的请求后缀,该属性的默认值是action,即所有匹配*.action的请求都由Struts2处理。如果用户需要指定多个请求后缀,则多个后缀之间以英文逗号(,)隔开。--&g 阅读全文
posted @ 2012-04-24 22:33 庚武 阅读(196) 评论(0) 推荐(0) 编辑
摘要:from:http://www.haskell.org/haskellwiki/Haskell_in_5_steps#Write_your_first_parallel_Haskell_program起由: Write your first parallel Haskell programHaskell has good support for parallel and multicore programming. We can write a parallel program by adding `par` to expressions, like so:import Control.Par 阅读全文
posted @ 2011-10-20 15:10 庚武 阅读(2126) 评论(1) 推荐(0) 编辑
摘要://java code:interface CarElementVisitor { void visit(Wheel wheel); void visit(Engine engine); void visit(Body body); void visit(Car car);} interface CarElement { void accept(CarElementVisitor visitor); // CarElements have to provide accept().} class Wheel implements CarElement { pr... 阅读全文
posted @ 2011-10-17 14:15 庚武 阅读(363) 评论(0) 推荐(0) 编辑
摘要://TestCollect .javapackage com.test;public class TestCollect { private String name; private int age; public String getName() { return name; } public void setName(String name) { this.name = name; } public int getAge() { return age; } public void setAge(int age) { this.age = age; } @Override prote... 阅读全文
posted @ 2011-10-14 21:39 庚武 阅读(178) 评论(0) 推荐(0) 编辑
该文被密码保护。
posted @ 2011-08-31 17:49 庚武 阅读(1) 评论(0) 推荐(0) 编辑
该文被密码保护。
posted @ 2011-08-18 18:13 庚武 阅读(1) 评论(0) 推荐(0) 编辑
摘要:maven 搜索网址:http://search.maven.org/#search%7Cga%7C1%7C<mirror><id>ibiblio.org</id><name>ibiblio Mirror ofhttp://repo1.maven.org/maven2/</name><url>http://mirrors.ibiblio.org/pub/mirrors/maven2</url><mirrorOf>central</mirrorOf><!-- United State 阅读全文
posted @ 2011-08-18 13:07 庚武 阅读(1954) 评论(0) 推荐(0) 编辑
摘要:最简单的方法在项目根目录与.git目录同一位置创建一个文件: .gitignoretouch .gitignorevi .gitignore:wq注:如果要忽略的文件已被git管理,需要先移除,命令如下:e.g.:git rm -r --cached WebRoot/WEB-INF/classes/**/*-r:递归git commit然后.gitignore中的忽略,起作用以下参考//-------------------from:http://gitready.com/beginner/2009/01/19/ignoring-files.htmlThe easiest and simple 阅读全文
posted @ 2011-08-16 23:13 庚武 阅读(29651) 评论(0) 推荐(0) 编辑
摘要:http://code.google.com/p/flexlib/wiki/ComponentListFlexlibYou should take a look at the SuperTabNavigator component from theFlexLibproject:SuperTabNavigator exampleSuperTabNavigator documentationFlexLib Component listIf you don't want all of the tabs to have close buttons (I understand from the 阅读全文
posted @ 2011-08-03 18:29 庚武 阅读(451) 评论(0) 推荐(0) 编辑
摘要:Tomcat下发布webservice1http://alvinqq.iteye.com/blog/647649http://jax-ws.java.net/ 阅读全文
posted @ 2011-07-31 02:21 庚武 阅读(288) 评论(0) 推荐(0) 编辑