依赖库 spring 3.0配置web.xml文件如下: mywork org.springframework.web.context.ContextLoaderListener contextConfigLocation classpath:applicationC...
分类:
编程语言 时间:
2014-11-22 16:00:15
阅读次数:
251
String ImgUrl2 = context.Request.QueryString["ImgUrl"]; String ImgUrl = ImgUrl2.Substring(0, ImgUrl2.Length - (ImgUrl2.Length - ImgUrl2.LastIn...
public static void main(String[] args) { ApplicationContext context = new ClassPathXmlApplicationContext("ApplicationContext.xml"); System.out....
分类:
编程语言 时间:
2014-11-22 14:36:13
阅读次数:
252
一. 主要内容1. 数据持久层框架:EF,NHibernate,ibaties(半开放的)。2. 对象关系映射。3. 生成外键对象。4. T4模板。(VS里面需要装T4 Editor插件。)5. EF上下文(EF容器)->.Context.cs。6. EF简单的增删改查。查询:利用部分类的特性重写方...
分类:
其他好文 时间:
2014-11-22 13:15:18
阅读次数:
234
SEVERE: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListenerorg.springframe...
分类:
编程语言 时间:
2014-11-22 13:14:54
阅读次数:
161
import android.content.Context;import android.content.SharedPreferences;import android.content.SharedPreferences.Editor;/** * SharedPreferences是一种轻型的数...
分类:
移动开发 时间:
2014-11-22 13:13:07
阅读次数:
266
退出应用的时候调用下面方法,就可以清楚数据了。
+ ActivityManager am = (ActivityManager)getSystemService(Context.ACTIVITY_SERVICE);
+ boolean res = am.clearApplicationUserData();
+ if (!res) {
+ ...
分类:
移动开发 时间:
2014-11-22 12:07:44
阅读次数:
176
1 2 3 4 5 姓名: 6 7 @msg 8 9 10 11 12 13 public void ProcessRequest(HttpContext context)14 ...
分类:
Web程序 时间:
2014-11-21 23:13:28
阅读次数:
256
启动MediaScanner服务,扫描媒体文件,程序通过发送下面的Intent启动MediaScanner服务。扫描指定文件 public void scanFile(Context ctx, String filePath) { Intent scanIntent = n...
分类:
移动开发 时间:
2014-11-21 23:09:13
阅读次数:
210
ActionBar:getActionBar().getHeight();StatusBar: /** * 获取状态栏高度 * * @return */ public static int getStatusBarHeight(Context ...
分类:
移动开发 时间:
2014-11-21 23:03:54
阅读次数:
702