码迷,mamicode.com
首页 >  
搜索关键字:beans    ( 2634个结果
装配Bean
1、创建Spring配置 在XML文件中声明Bean时,Spring配置文件的根元素来源于Spring beans命名空 间所定义的元素。以下为一个典型的Spring XML配置文件: <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema...
分类:其他好文   时间:2014-09-15 11:19:48    阅读次数:228
Jsp 之Bound属性的使用方法
一个 Bound 属性是指当该种属性的值发生变化时,要通知其它的对象。每次属性值改变时,这种属性就点火一个PropertyChange事件(在Java程序中,事件也是一个对象)。事件中封装了属性名、属性的原值、属性变化后的新值。这种事件是传递到其它的Beans,至于接收事件的Beans 应做什么动作...
分类:Web程序   时间:2014-09-13 15:55:15    阅读次数:211
ApplicationContext.xml配置文件
<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:jee="http://www.springframework.org/schema/jee" xmlns:tx="http://www.springfram...
分类:移动开发   时间:2014-09-12 17:14:33    阅读次数:336
将任意格式转换为JSON数据格式的工具类
Java的将任意格式转换为JSON数据格式的工具类 package org.sjw.utils; import java.beans.IntrospectionException; import java.beans.Introspector; import java.beans.PropertyDescriptor; import java.util.List; import java.ut...
分类:Web程序   时间:2014-09-11 11:18:01    阅读次数:270
spring framework 4 源码阅读
前面写了几篇spring 的介绍文章,感觉与主题不是很切合。重新整理下思路,从更容易理解的角度来写下文章。 spring 的骨架 spring 的骨架,也是spring 的核心包。主要包含三个内容 1.context:spring 的上线文-------导演 2.core:spring的核心包,主要包括spring所以用到的工具-------道具 3.beans:spring的bean实例 -------演员...
分类:编程语言   时间:2014-09-10 17:50:50    阅读次数:246
测试工程执行,遇到sql-mapconfig-2.dtd文件不存在的问题
[persistence/sql-map-.xml]; nested exception is java.io.FileNotFoundException: class path resource [sql-map-config-2.dtd] cannot be opened because it does not exist at org.springframework.beans.fac...
分类:数据库   时间:2014-09-10 12:49:40    阅读次数:402
使用spring注入时出现is not writable or has an invalid setter method
在web-application-config.xml中定义 结果,运行时出错:org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'employeeServiceDest' ....
分类:编程语言   时间:2014-09-09 10:35:08    阅读次数:205
2014上半年总结
一,Java 1,J2EE 13个规范   JDBC:Java Data Base Connectivity,数据库连接; JNDI:Java Naming and Directory Interfaces,Java命名和目录接口; EJB:Enterprise Java Beans,企业级Java Beans; RMI:Remote Method Invocation,远程方法调...
分类:其他好文   时间:2014-09-06 22:35:34    阅读次数:312
SSH中将hibernate托管给spring获取session的方法
import org.hibernate.HibernateException;import org.hibernate.Session;import org.hibernate.SessionFactory;import org.springframework.beans.factory.Bean...
分类:编程语言   时间:2014-09-05 17:41:51    阅读次数:351
[Hibernate] - Criteria Select
使用Hibernate的Criteria做查询。参考文档:http://docs.jboss.org/hibernate/orm/3.5/reference/zh-CN/html/querycriteria.htmlJava Beans:package com.my.bean;import java...
分类:系统相关   时间:2014-09-05 12:50:31    阅读次数:420
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!