A. 通过集成Spring与Hibernate,以Spring管理程序的依赖关系,将SessionFactory注入DataSource
B. 通过Spring,在Biz层代码中无须直接实例化DAO类,而是通过注入获得
C. 通过Spring,在DAO类中无须实例化SessionFactory,而是通过注入获得
D. Spring提供HibernateDaoSupport类来简化Hibernate的使用
第1题
A.DataSource->SessionFactory->Biz ->DAO
B.SessionFactory ->DataSource ->DAO->Biz
C.DataSource->SessionFactory->DAO->Biz
D.SessionFactory ->DataSource ->Biz ->DAO
第2题
A.根据一个属性的值查询
B.将传入的对象状态设置为Transient状态
C.根据对象查询,查询条件为对象的属性值
D.添加与修改,类似于saveOrUpdate
第3题
A.boolean flag = beanFactory.containsBean("proBean");
B.PropertiesBean propertiesBean
= (PropertiesBean)beanFactory.getBean("proBean");
C.Class classType = beanFactory.getType("proBean");
D.PropertiesBean propertiesBean
= (PropertiesBean)beanFactory.getBean("proBean", PropertiesBean.class);
第4题
A.InvocationHandler
B.MethodInterceptor
C.MethodBeforeAdvice
D.AfterReturningAdvice
为了保护您的账号安全,请在“上学吧”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!