`
ponlya
  • 浏览: 160028 次
  • 性别: Icon_minigender_1
  • 来自: 武汉
社区版块
存档分类
最新评论
文章列表
很是奇怪idref是干什么的。只是拿另一个的id名? com.spring305.test.beanInit.cpo.IdrefA.java public class IdrefA { private String idrefAStr; public IdrefA(){ System.out.println(IdrefA.class+"_"+idrefAStr); } public String getIdrefAStr() { return idrefA ...
DI (依赖注入)有二种: Constructor-based dependency injection and Setter-based dependency a)、Constructor-based  DI com.spring305.test.beanInit.po.InitSingeBean.java import java.util.Date; public class InitSingeBean { private int id; private Integer age; private String name; private Date birth ...
Spring3之 bean命名(http://ponlya.iteye.com/blog/1004889) 中已经有一种实例化bean的方法了,这里看spring3文档有另二种:Instantiation with a static factory method(静态工厂方法实例化),Instantiation using an instance factory method(实例工厂方法实例化)   a)、Instantiation with a static factory method com.spring305.test.beanInit.po.StaticFactoryBeanI ...
一、bean的命名采用标准Java命名约定:小写字母开头,首字母大写间隔的命名方式。如accountManager、accountService etc...; 二、每个bean都有一个或多个id(或称之为标识符或名称,在术语 上可以理解成一回事)。这些id在当前IoC容器中必须唯一。如果 一个bean有多个id,那么其他的id在本质上将被认为是别名; 三、
如Mybatis中使用DTD来验证XML <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE configuration PUBLIC "-//mybatis.org//DTD Config 3.0//EN" "http://mybatis.org/dtd/mybatis-3-config.dtd"> 还可以在其发行包中org.apache.ibatis.builder.xml.dynamic中找到mybatis- ...
Bean:在Spring中,那些组成你应用程序的主体(backbone)及由Spring IOC容器所管理的对象,被称之为bean。 简单地讲,bean就是由Spring容器初始化、装配及管理的对象,除此之外,bean就与应用程序中的其他对象没有什么区别了。 而bean定义以及bean相互间的依赖关系将通过配置元数据来描述。 org.springframework.beans.factory.BeanFactory是Spring IoC容器的实际代表者,IoC容器负责容纳此前所描述的bean,并对bean进行管理,包括:实例化、定位、配置应用程序中的对象及建立这些对象间的依赖。
学习采用的是spring2.5中文文档,及spring3的英文文档,spring 3.0.5版本。 aopalliance.jar ,aspectjrt.jar,aspectjweaver.jar,cglib-nodep-2.1_3.jar,commons-logging-1.1.1.jar,junit-4.6.jar这些文件在spring3.0.5中没有找到,从spring-framework-2.5.6.SEC01版本\lib中拿来。其它文件的源代码在spring3.0.5可以找到:*source*.jar。 <!--EndFragment--> 以下摘自2.5翻译 ...
2.5   <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="http://www.springframework.org/schema/tx" xsi:schemaLocation=&quo ...
准备记录自己的Spring3学习日志,虽然之前使用过,也断断续续学习过spring,但是,感觉没有学习到精要,或者全面...还不能对之有更全面的了解,现准备全面补课,一并记之....

@SuppressWarnings

注解,黄色小警告: @SuppressWarnings("unchecked") 泛型的; @SuppressWarnings("serial")序列化; @SuppressWarnings("deprecation")deprecated方法; @SuppressWarnings(value={"deprecation","unchecked"})二个;
使用mysql  和hibernate 3.2开发的一个小型网站,上传到服务器上,第一天还能够正常访问,第二天一早就出现了异常,异常如下:2010-04-14 11:27:13:WARNhttp-8080-4org.hibernate.util.JDBCExceptionReporter-SQL Error: 0, SQLState: 08S012010-04-14 11:27:13:ERRORhttp-8080-4org.hibernate.util.JDBCExceptionReporter-Communications link failure due to underlying exce ...
Global site tag (gtag.js) - Google Analytics