随笔分类 -  00.Java & j2ee

摘要:http://search.maven.orghttp://repository.apache.orghttp://www.artifact-repository.orghttp://mvnrepository.comhttp://www.mvnbrowser.comhttp://www.jarvana.comhttp://mavensearch.netpom.xml示例:<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema 阅读全文
posted @ 2011-06-10 16:16 庚武 阅读(2078) 评论(0) 推荐(0) 编辑
摘要:Eclipse插件:http://marketplace.eclipse.org/Maven2Eclipse插件安装与使用http://www.sonatype.com/books/m2eclipse-book/reference/Maven2Eclipse安装:http://www.sonatype.com/books/m2eclipse-book/reference/install-sect-marketplace.htmlhttp://www.cnblogs.com/dcba1112/archive/2011/05/01/2033805.html现在我以Eclipse 3.6为例逐步讲解 阅读全文
posted @ 2011-06-09 17:43 庚武 阅读(869) 评论(0) 推荐(0) 编辑
摘要:插件下载:http://files.cnblogs.com/wucg/com.cb.eclipse.folding_1.0.6.jar.zip把com.cb.eclipse.folding_1.0.6.jar 复制到myeclipse中的D:\MyEclipse6_6\eclipse\plugins 目录下。按以下配置。在User Defined Regions里自己编辑自定义折叠开始,结束标签。(确保Enable Folding 最后一项选中。),重启myeclipse,就发现可以折叠了。//start//code ....//end-----------------以下为摘录------- 阅读全文
posted @ 2011-05-15 16:41 庚武 阅读(2414) 评论(0) 推荐(0) 编辑
摘要:工具: 普遍认为 XML spy比较好用,但是商业版.EditiX : Free Edition for non commercial useage,免费版供非商业使用下载网址: http://free.editix.com/ 但有时被墙.华军软件园:http://www.newhua.com/soft/56597.htm本人最新下载的版本: Version:2010 [Build 020110]Company: http://www.japisoft.com本人使用过的特性: schema validate xml, pretty format for xml document.schema 阅读全文
posted @ 2011-05-10 11:34 庚武 阅读(917) 评论(0) 推荐(0) 编辑
摘要:from: http://www.zvon.org/xxl/XPathTutorial/General_chi/examples.html基本的XPath语法类似于在一个文件系统中定位文件,如果路径以斜线 / 开始, 那么该路径就表示到一个元素的绝对路径 /AAA选择根元素AAA<AAA> <BBB/> <CCC/> <BBB/> <BBB/> <DDD> <BBB/> </DDD> <CCC/> </AAA> 在XLab中打开实例 | 树视图 (JPG) /AAA/CCC选 阅读全文
posted @ 2011-05-09 00:55 庚武 阅读(309) 评论(0) 推荐(0) 编辑
该文被密码保护。
posted @ 2011-04-24 01:00 庚武 阅读(2) 评论(0) 推荐(0) 编辑
摘要:Loggers, Appenders and LayoutsLog4j has three main components: loggers, appenders and layouts. These three types of components work together to enable developers to log messages according to message type and level, and to control at runtime how these messages are formatted and where they are reporte 阅读全文
posted @ 2011-04-21 19:13 庚武 阅读(427) 评论(0) 推荐(0) 编辑
摘要:applicationContext.xml:<?xml version="1.0" encoding="UTF-8"?><beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:aop="http://www.springframework.org/schema/aop" xmlns:tx=&quo 阅读全文
posted @ 2011-04-21 16:33 庚武 阅读(2192) 评论(0) 推荐(0) 编辑
摘要:MyEclipseGen.javaimport java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class MyEclipseGen { private static final String LL = "Decompiling this copyrighted software is a violation of both your license agreement and the Digital Millenium Copyright Act 阅读全文
posted @ 2011-04-19 15:07 庚武 阅读(266) 评论(0) 推荐(0) 编辑
摘要:闭包的基本概念闭包是可以包含自由(未绑定)变量的代码块;这些变量不是在这个代码块或者任何全局上下文中定义的,而是在定义代码块的环境中定义。“闭包” 一词来源于以下两者的结合:要执行的代码块(由于自由变量的存在,相关变量引用没有释放)和为自由变量提供绑定的计算环境(作用域)。在 Scheme、Common Lisp、Smalltalk、Groovy、JavaScript、Ruby 和 Python 等语言中都能找到对闭包不同程度的支持。闭包的价值闭包的价值在于可以作为函数对象 或者匿名函数,对于类型系统而言这就意味着不仅要表示数据还要表示代码。支持闭包的多数语言都将函数作为第一级对象,就是说这些 阅读全文
posted @ 2011-04-15 17:11 庚武 阅读(234) 评论(0) 推荐(0) 编辑
摘要:文件下载: http://files.cnblogs.com/wucg/spring_aop_excise.zip 阅读全文
posted @ 2011-04-12 19:25 庚武 编辑
摘要://MyBean.javapackage test.aop;public class MyBean { private String name; public String getName() { return name; } public void setName(String name) { this.name = name; } }//MyMethodBeforeAdvice.javapackage test.aop;import java.lang.reflect.Method;import org.springframework.aop.MethodBeforeAdvice;publ 阅读全文
posted @ 2011-04-09 19:57 庚武 阅读(330) 评论(0) 推荐(0) 编辑
摘要:<?xml version="1.0" encoding="UTF-8"?><project basedir="." default="usage" name="TestPrjAndBuild"> <!-- 定义目录变量 --> <property name="project-name" value="TestPrjAndBuild" /> <!-- ====此处需要修改====.jar文件名 --&g 阅读全文
posted @ 2011-04-01 20:04 庚武 阅读(318) 评论(0) 推荐(0) 编辑
摘要:AOP concepts Let us begin by defining some central AOP concepts and terminology. These terms are not Spring-specific... unfortunately, AOP terminology 阅读全文
posted @ 2011-04-01 14:52 庚武 阅读(333) 评论(0) 推荐(0) 编辑
摘要:Module SummaryLet's now examine the functionality that Spring offers in more detail. It is divided into a number of separate modules.There are two main categories of functionality in Spring:An IoC container and AOP framework, which handle configuration and application of services to objects.A se 阅读全文
posted @ 2011-03-30 16:27 庚武 阅读(249) 评论(0) 推荐(0) 编辑
摘要:java code:package test.el.function;public class ArithmaticOP { public static int AddInt(int a,int b){ return a+b; }}mytags.tld<?xml version="1.0" encoding="UTF-8"?><taglib version="2.1" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http:// 阅读全文
posted @ 2011-03-28 16:59 庚武 阅读(304) 评论(0) 推荐(0) 编辑
摘要:<Host name="localhost" appBase="webapps" unpackWARs="true" autoDeploy="true"><Context path="/a" docBase="E:\Projects\MyEclipse6_6\TestFirst\WebRoot" reloadable="true" /> <Valve className="org.apache.catalina.va 阅读全文
posted @ 2011-03-28 00:40 庚武 阅读(242) 评论(0) 推荐(0) 编辑
摘要:Introduction:http://tomcat.apache.org/tomcat-7.0-doc/apr.htmlTomcat Native Downloads:http://tomcat.apache.org/download-native.cgiIndex of //tomcat/tomcat-connectors/native/1.1.20/binarieshttp://labs.renren.com/apache-mirror/tomcat/tomcat-connectors/native/1.1.20/binaries/win32/ 阅读全文
posted @ 2011-03-24 18:52 庚武 阅读(286) 评论(0) 推荐(0) 编辑
摘要:http://download.oracle.com/javase/tutorial/essential/concurrency/locksync.htmlSynchronization is built around an internal entity known as theintrinsic lockormonitor lock. (The API specification often refers to this entity simply as a "monitor.") Intrinsic locks play a role in both aspects 阅读全文
posted @ 2011-03-21 15:27 庚武 阅读(292) 评论(0) 推荐(0) 编辑
摘要:from:http://www.java-samples.com/showtutorial.php?tutorialid=306//Q.java 代表队列,存数据package com.test.threadcooperate;//A correct implementation of a producer and consumer. public class Q { int n; volatile boolean valueSet = false; public synchronized int get() { if (!valueSet) try { wait(); // 无限等待 // 阅读全文
posted @ 2011-03-21 14:23 庚武 阅读(268) 评论(0) 推荐(0) 编辑