spring的aop原理演示(申明式以及配置式)

加载的jar有:                            log4j-1.2.16.jar                               org.springfaramework.asm-3.0.5.release.jar                            org.springfaramework.beans-3.0.5.release.jar                            org.springfaramework.context-3.0.5.release.jar                            org.springfaramework.core-3.0.5.release.jar                         …

spring+hibernate

加载的jar有:                            log4j-1.2.16.jar                               c3p0-0.9.1.2.jar                            mysql-connector-java-5.1.14-bin.jar                            org.springfaramework.asm-3.0.5.release.jar                            org.springfaramework.beans-3.0.5.release.jar                            org.springfaramework.context-3.0.5…

spring+HibernateTemplate();spring+getJdbcTemplate()

加载的jar有:                            log4j-1.2.16.jar                               c3p0-0.9.1.2.jar                            mysql-connector-java-5.1.14-bin.jar                            org.springfaramework.asm-3.0.5.release.jar                            org.springfaramework.beans-3.0.5.release.jar                            org.springfaramework.context-3.0.5…

Spring中的Annotation

Spring中的Annotation 操作步骤: 1. 添加jar 2. 定义切面类 package demo; import org.aspectj.lang.JoinPoint; import org.aspectj.lang.ProceedingJoinPoint; import org.aspectj.lang.annotation.After; import org.aspectj.lang.annotation.AfterReturning; import org.aspectj.lang.annotation.AfterThrowing; import org.aspectj.lang.annotation.Around; import org.aspectj.lang.annotation.A…

Unable to load configuration. – bean – jar

2014-9-11 12:51:46 org.apache.catalina.core.StandardContext filterStart严重: Exception starting filter adminUnable to load configuration. - bean - jar:file:/E:/Tomcat6041/webapps/kaituo/WEB-INF/lib/struts2-core-2.3.16.3.jar!/struts-default.xml:40:72     at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:428)     at org.apache.struts2.dispatcher.ng.InitOper…

jar读取配置文件

private FileInputStream readOutJarFile (String filename) throws Exception{  //取得jar文件所在目录  String str = this.getClass().getProtectionDomain().getCodeSource().getLocation().getFile();  str = str.substring(0, str.lastIndexOf("/"));    //读取配置文件  str = str + "/" + filename;  return new FileInputStream(str);   }

xmlbeans XMLSpy 解析xml

Altova XMLSpy  把xml解析成xsd文件 下载xmlbeans 注意:jar  配置path scomp -src src  -out XmlBean.jar 88.xsd    -compiler "C:/Program Files/Java/jdk1.6.0/bin/javac" 88.xsdconfig 新建项目 导xmlb里的jar 加上刚生成的jar     写一个类似的类 import java.io.File;import java.io.UnsupportedEncodingException; import sample.xmlbean.*;import sample.xmlbean.CardItemDocument.CardItem;i…

osworkflow的使用

jar file 將以下jar file放置到WEB-INF/lib底下… activation.jar bsh-1.2b7.jar commons-logging.jar designer.jar mail.jar oscore-2.2.2.jar osuser-1.0-dev-3Dec03.jar osworkflow-2.7.0.jar propertyset-1.3-21Apr04.jar quartz.jar 這些jar file可以在OSWorkflow提供的example裡找到。建立資料庫 在SQL Server中建立一資料庫,名稱可自取,這裡取名OSWorkflow,然後執行%OSWorkflow%/src/etc/de…

图片加载的几种模式

简单来说就是 LinearLayout 布局,其下放了5个ImageView。 1.0" encoding="utf-8"?> http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent"> 图片区域开始" android:id="@+id/textView2" android:layout_width="wrap_content" android:layout_height="wrap_content"> @+id/imageView1" andr…

android.view.InflateException: Binary XML file line #7: Error inflating class Ge

写到手势识别的时候. GestureOverlayView 根据自动提示,写成:   <GestureOverlayView android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_weight="1.0" android:id="@+id/gesture" />     运行程序报错. android.view.InflateException: Binary XML file line #7: Error inflating class GestureOverlayView 但凡有android.view.InflateException: Binary…

Project——从网络获取数据,实现图片查看器

1、 <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android"       package="cn.itcast.image"       android:versionCode="1"       android:versionName="1.0">     <application android:icon="@drawable/icon" android:label="@string/app_name">         <activity android:name=".MainActivity"                 …

Project——多线程断点续传下载

1、 <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android"       package="cn.itcast.download"       android:versionCode="1"       android:versionName="1.0">     <application android:icon="@drawable/icon" android:label="@string/app_name">         <activity android:name=".MainActivity"              …

android ListView

list.xml <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"     android:orientation="horizontal" android:layout_width="fill_parent"     android:layout_height="fill_parent">     <ImageView android:id="@+id/img" android:layout_width="wrap_content"         android:layout_height="wrap_content" andro…

Project——文件操作

1、 <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android"       package="cn.itcast.file"       android:versionCode="1"       android:versionName="1.0">     <application android:icon="@drawable/icon" android:label="@string/app_name">         <uses-library android:name="android.test.runner" />  …

Android之SurfaceView实现视频播放

Android之SurfaceView实现视频播放 1.案例一 布局文件: <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent" android:weightSum="1"> <SurfaceView android:layout_height="220dip" android:layout_gravity…