原创 flex4 整合java ee 練習——HelloWorld

一、修改 web.xml文件,添加如下代碼 <display-name>BlazeDS</display-name> <description>BlazeDS Application</description> <!--

原创 hibernate4 + spring3 整合報錯問題

 錯誤:java.lang.NoSuchMethodError: org.hibernate.SessionFactory.openSession()Lorg/hibernate/classic/Session; 原因:Hibern

原创 cxf webservice執行數據庫操作

cxf webservice執行數據庫操作,做個筆記,以免以後忘了。 IUserService.java public interface IUserService { public User getUser(User u

原创 Spring AOP + AspectJ in XML 配置示例

In this tutorial, we show you how to convert last Spring AOP + AspectJ annotation into XML based configuration. For tho

原创 Spring AOP + AspectJ annotation example

In this tutorial, we show you how to integrate AspectJ annotation with Spring AOP framework. In simple, Spring AOP + As

原创 cxf應用--通過接口將數據保存到數據庫

服務器端代碼:ITestSendData.javapackage testcxf;import javax.jws.WebService;import

原创 Spring AOP Example – Pointcut , Advisor

In last Spring AOP advice examples, the entire methods of a class are intercepted automatically. But for most cases, yo

原创 Spring AOP Interceptor transaction is not working

Problem The Spring AOP transaction is not working in following interceptors? <bean id="testAutoProxyCreator"

原创 SVG 在線編輯器

Method Draw 是一款在線 SVG 編輯器,是 SVG Edit 的一個分支。Method Draw 的目的是改進 SVG Edit 的可用性和用戶體驗。它移除了 line-caps/corners 等功能以提供一個簡單愉悅操作體

原创 java 多線程讀取多個文件 和 不用線程讀取多個文件

多線程讀取多個文件 package thread; import java.io.File; import java.io.IOException; import java.io.RandomAccessFile; import jav

原创 struts2上傳下載文件中遇到的亂碼問題

struts2上傳下載文件所需jar包 上傳下載類 FileUploadAction.java package action; import java.io.File; import java.io.FileInputStream

原创 hibernate二級緩存測試

SessionFactory類: import org.hibernate.Session; import org.hibernate.SessionFactory; import org.hibernate.cfg.Configura

原创 Hibernate緩存機制

一、why(爲什麼要用Hibernate緩存?) Hibernate是一個持久層框架,經常訪問物理數據庫。 爲了降低應用程序對物理數據源訪問的頻次,從而提高應用程序的運行性能。 緩存內的數據是對物理數據源中的數據的複製,應用程序在運行時從

原创 iframe與主框架跨域相互訪問方法

1.同域相互訪問 假設A.html 與 b.html domain都是localhost (同域) A.html中iframe 嵌入 B.html,name=myframe A.html有js function fMain() B.

原创 使用dragdealer.js實現拖拉效果

dragdealer.js拖拉效果的jquery插件。 <!doctype html> <html> <head> <meta charset="utf-8"> <title>content scroller</title> <styl