`
lufeng4321
  • 浏览: 58050 次
  • 性别: Icon_minigender_1
  • 来自: 上海
社区版块
存档分类
最新评论
文章列表
package com.racky.test; public class Ex { public static void main(String[] args) {     Fx f=new Fx(5);     }     Ex() {     System.out.println("Ex无参数");     }         Ex(int i) { System.out.println("Ex,INT型参数");     } } class Fx extends Ex{ Fx(){ super(); System.out.p ...
第一步,编写HTML页面代码 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"         "http://www.w3.org/TR/html4/loose.dtd"> <html> <head>     <title></title>     <script type="text/javascript" src="jslib/verifyxml.js">< ...
面试时经常会被问到抽象类与接口的区别,因此这里总结一下 可以从一下几个方面来考虑抽象类与接口的区别 1,组成方面    抽象类的组成可以有抽象方法,普通方法,常量,变量,构造方法,全局常量    接口的组成可以有 ...
   现在行业里很多人都在谈论敏捷开发,这是一个热点,很多公司也正在企图把敏捷开发模式做为企业的核心竞争力之一,可见敏捷已经超越了传统的软件开发方法的范畴,变成了具有商业意义的业务模式。     什么叫敏捷 ...
EJB3.0中MessageDrivenBean: 1.java消息驱动bean属于Java消息服务(Java Message Service,简称JMS)。 2.JMS是用于访问企业消息系统的开发商中心的API。企业消息系统可以协助应用软件通过网络进行消息交互。 3.JMS的编程过程简单概括为:应用程序A-->(消息)-->Jboss JMS-->(消息)-->应用程序B。应用程序A和应用程序B没有直接的代码关联,两者实现了解耦。消息传递系统的中心就是消息。 消息驱动Bean(MDB)是设计用来专门处理基于消息请求的组件,它和无状态Session Bean一样也 ...
avax.naming.NameNotFoundException: QueueConnectionFactory not bound at org.jnp.server.NamingServer.getBinding(NamingServer.java:771) at org.jnp.server.NamingServer.getBinding(NamingServer.java:779) at org.jnp.server.NamingServer.getObject(NamingServer.java:785) at org.jnp.server.NamingServer.look ...
2009-7-13 12:25:51 org.apache.catalina.core.AprLifecycleListener init 信息: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\Java\jdk1.6.0_06\bin;D:\Apache Software Foundation\Apache Tomcat 6. ...

js键码表

   1. keycode 0 =     2. keycode 1 =     3. keycode 2 =     4. keycode 3 =     5. keycode 4 =     6. keycode 5 =     7. keycode 6 =     8. keycode 7 =     9. keycode 8 = BackSpace BackSpace    10. keycode 9 = Tab Tab    11. keycode 10 =    12. keycode 11 =    13. keycode 12 = Clear    14 ...
动态查询就是查询条件不确定的查询,或者说查询条件是根据用户传入的某些参数来生成的,在查询之前就已经生成了查询条件,hibernate中的查询条件一般都需要在取得session后才构造,而hibernate动态查询在取得session之前就已经构造好了查询条件,只是将查询条件作为参数传入到查询方法中,因此也叫离线查询,动态查询的条件可以在web层中就已经构造好了,例如servlet中,构造查询条件的方式如下: DetachedCriteria dc=DetachedCriteria.forClass(User.class); String name=request.getParameter(&qu ...
问题的产生:假设一次性需要向数据库中保存一百万条数据1000000,则常规的保存方式为 Session session=null; Transaction tx=null; try{ session=this.getHibernateTemplate().getSessionFactory().openSession(); tx=session.beginTransaction(); for(int i=0;i<1000000;i++){     s.save(user); } tx.commit(); }finally{    if(session!=null)       sessio ...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package com.racky.singleton; /** * * @author racky */ public class Singleton {     private static Singleton obj=new Singleton();     private static int counter1;     private static int counter2=0 ...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package com.racky.string; /** * * @author Racky */ public class StringTest {     public static void main(String args[])     {         String s0="racky";         Strin ...
在项目开发中经常会遇到树型结构的数据,如菜单,企业组织等,都是树型结构,这里给出这种数据结构基于关系数据库的一中设计方法,该脚本是MYSQL中的 create table tree(      id         int(10) not null auto_increment primary key,-- --主键      parent_id   int(10) not null,-- --父接点ID      name       varchar(200) not null,-- --接点名称      node_type   int(2)  not null,-- --接点类型,可用于标 ...
首先在项目中导入dwr.jar包和commons-logging.jar包,commons-logging.jar包一定要,否则会报错 然后在web.xml文件中加入以下代码,这里给出两种配置,第一中是服务器推,反转AJAX的配置 <servlet> <servlet-name>dwr-invoker</servlet-name> <servlet-class> org.directwebremoting.servlet.DwrServlet </servlet-class> <init-param> ...
Global site tag (gtag.js) - Google Analytics