码迷,mamicode.com
首页 >  
搜索关键字:context    ( 11739个结果
spring注解controller示例
依赖库 spring 3.0配置web.xml文件如下: mywork org.springframework.web.context.ContextLoaderListener contextConfigLocation classpath:applicationC...
分类:编程语言   时间:2014-11-22 16:00:15    阅读次数:251
c#下载图片
String ImgUrl2 = context.Request.QueryString["ImgUrl"]; String ImgUrl = ImgUrl2.Substring(0, ImgUrl2.Length - (ImgUrl2.Length - ImgUrl2.LastIn...
分类:Windows程序   时间:2014-11-22 15:50:07    阅读次数:306
main方法调用spring中dao service方法
public static void main(String[] args) { ApplicationContext context = new ClassPathXmlApplicationContext("ApplicationContext.xml"); System.out....
分类:编程语言   时间:2014-11-22 14:36:13    阅读次数:252
EF简单增删改查
一. 主要内容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
错误:Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener
SEVERE: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListenerorg.springframe...
分类:编程语言   时间:2014-11-22 13:14:54    阅读次数:161
Android中数据存储之SharedPreferences
import android.content.Context;import android.content.SharedPreferences;import android.content.SharedPreferences.Editor;/** * SharedPreferences是一种轻型的数...
分类:移动开发   时间:2014-11-22 13:13:07    阅读次数:266
android退出应用时候清除数据
退出应用的时候调用下面方法,就可以清楚数据了。 +        ActivityManager am = (ActivityManager)getSystemService(Context.ACTIVITY_SERVICE); +        boolean res = am.clearApplicationUserData(); +        if (!res) { +     ...
分类:移动开发   时间:2014-11-22 12:07:44    阅读次数:176
ASP.Net初级学习一(基本语句入门)
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
Android -- 文件扫描
启动MediaScanner服务,扫描媒体文件,程序通过发送下面的Intent启动MediaScanner服务。扫描指定文件 public void scanFile(Context ctx, String filePath) { Intent scanIntent = n...
分类:移动开发   时间:2014-11-21 23:09:13    阅读次数:210
Android获取actionbar高度和StatusBar高度的方法
ActionBar:getActionBar().getHeight();StatusBar: /** * 获取状态栏高度 * * @return */ public static int getStatusBarHeight(Context ...
分类:移动开发   时间:2014-11-21 23:03:54    阅读次数:702
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!