`
pengchua
  • 浏览: 153677 次
  • 性别: Icon_minigender_1
  • 来自: 上海
文章分类
社区版块
存档分类
最新评论
文章列表
//获取数据表结构 public static void getConnAndTableStruct(){        Connection connection = null;        PreparedStatement pstmt = null;        ResultSetMetaData rsmd = null;        try {            //mysql连接             Class.forName("org.gjt.mm.mysql.Driver");            connection = DriverManag ...
 In the following section, we are going to compare the various features between the two frameworks. Struts 2.x  is very simple in comparison to the struts 1.x ,  few of its excelling features are:1.  Servlet Dependency:Actions in Struts 1  have dependencies on the servlet API since the HttpServletReq ...
http://struts.apache.org/2.x/http://www.blogjava.net/max/<o:p> </o:p>Apache Struts 2 is an elegant, extensible framework for creating enterprise-ready Java web applications. The framework is designed to streamline the full development cycle, from building, to deploying, to maintaining app ...
 Spring 2.0中 AOP的编程:方式一:publicclass User {    publicvoid method() {        System.out.println("in method1");    }}publicclass LogBean {    public Object aroundLogCalls(ProceedingJoinPoint joinPoint) throws Thro
作者 Rod Johnson 译者 张凯峰 发布于 2007年7月11日 上午5时22http://www.infoq.com/cn/articles/spring-2-intro 写得太好了
1.       先在myeclipse中集成好weblogic:(1)选择菜单Window->Preferences->MyEclipse->Application Servers->Weblogic 8,配置项目如下:BEA home directory: 选择Bea的安装目录Weblogic installation directory:现在BEA下面的weblogic81目录Admin username:输入上面在配置过程中设的用户名Admin password:输入刚才设的密码Execution domain root:选择BEA下user_projects\d ...
对于JAVA系统中的定时操作有两种实现方式(针对oarcle):1.       通过程序在应用层实现,如quartz,Timer等如在spring中:    <bean id="abcJobDetail" class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean"><o:p></o:p>        <property name="targetObject"><ref
 Messaging and developing MDBs1.Message-oriented middleware is software that enables asynchronous messages between system components.(消息中间件是能在各系统组件间传递异步消息的软件。)2. ■ The MDB class must directly (by using the implements keyword in the class declaration) or indirectly (through annotations or descriptors) ...
   1.Three primary techniques in EJB 3 eliminate these sources of complexity: metadata annotations, minimal deployment descriptors, and dependency injection. 2.The primary goal of dependency injection (DI) is to make componentinterdependencies as loosely coupled as possible.3. Unlike stateless sessio ...
 参考:http://www.ccw.com.cn/soft/apply/programming/htm2006/20061213_229656_5.shtml写得很好!
j2me手机开发入门<1> 下载 eclipse3.2 \ j2me_wireless_toolkit-2_1_01-windows.exe\ eclipseme1.6.8并安装//使用eclipse3.1有点问题 <2>重新启动eclipse,点击 windows ->选择 preference ->选择 j2me ->选择 Device Managment ->点击import ->选择 Browes ->选择 jwtk2.2的安装目录->点击 Refresh-->finish.<3>开启测试项目 ,重新启动 ...
 Collection List Set Map 区别   有序否 允许元素重复否 Collection 否 是 ...
 1. 利用XFire将http://www.webservicex.net/globalweather.asmx?wsdl 天气预报的webService生成相应的客户端程序。具体步骤见”XFire根据WSDL生成客户端程序” http://blog.csdn.net/pengchua/archive/2007/08/02/1722156.aspx2. 写调用Test.javapackage net.webservicex; import java.util.Properties; import org.dom4j.DocumentException; import xml.TestXML;  ...
一.常用解析XML方法:1.   Xerces-J:  http://www.apache.org/dist/xml/xerces-j/   one   of   the   most   commonly   used   XML   parser,   from   the   Apache   Project.     http://xml.apache.org/xerces-j/index.html   Xerces是由Apache组织所推动的一项XML文档解析开源项目,它目前有多种语言版本包括JAVA、C++、PERL、COM等。  2. JDom JDOM是一种面向Java的读、写和 ...
 使用xfire的eclipse插件提供的代码生成工具,根据WSDL生成的代码测试时出现异常: Exception in thread "main" org.codehaus.xfire.annotations.AnnotationException: Service class cannot be abstract: com.webserviceproject.xifre.echoimplservice.EchoImplServicePortType at org.codehaus.xfire.annotations.AnnotationServiceFactory.ass ...
Global site tag (gtag.js) - Google Analytics