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
一个 Bound 属性是指当该种属性的值发生变化时,要通知其它的对象。每次属性值改变时,这种属性就点火一个PropertyChange事件(在Java程序中,事件也是一个对象)。事件中封装了属性名、属性的原值、属性变化后的新值。这种事件是传递到其它的Beans,至于接收事件的Beans 应做什么动作...
分类:
Web程序 时间:
2014-09-13 15:55:15
阅读次数:
211
<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
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 的介绍文章,感觉与主题不是很切合。重新整理下思路,从更容易理解的角度来写下文章。
spring 的骨架
spring 的骨架,也是spring 的核心包。主要包含三个内容
1.context:spring 的上线文-------导演
2.core:spring的核心包,主要包括spring所以用到的工具-------道具
3.beans:spring的bean实例 -------演员...
分类:
编程语言 时间:
2014-09-10 17:50:50
阅读次数:
246
[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
在web-application-config.xml中定义 结果,运行时出错:org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'employeeServiceDest' ....
分类:
编程语言 时间:
2014-09-09 10:35:08
阅读次数:
205
一,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
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做查询。参考文档: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