码迷,mamicode.com
首页 >  
搜索关键字:context    ( 11739个结果
org.springframework.beans.factory.BeanCreationException: 求教育!
2014-11-26 14:05:56 [org.springframework.web.context.support.XmlWebApplicationContext]-[WARN] Exception encountered during context initialization - ca...
分类:编程语言   时间:2014-11-26 16:12:13    阅读次数:518
ActionContext 用法
struts2 对session的使用方法示范//设置sessionsession.put("user", userVo); //userVo是一个对象//获取sessionActionContext context = ActionContext.getContext();Map params ....
分类:其他好文   时间:2014-11-26 15:48:57    阅读次数:168
Spring中的<context:annotation-config/>配置
当我们需要使用BeanPostProcessor时,直接在Spring配置文件中定义这些Bean显得比较笨拙,例如:   使用@Autowired注解,必须事先在Spring容器中声明AutowiredAnnotationBeanPostProcessor的Bean: bean class="org.springframework.beans.factory.annotation.Auto...
分类:编程语言   时间:2014-11-26 14:24:19    阅读次数:206
spring mvc DispatcherServlet详解之前传---FrameworkServlet
做项目时碰到Controller不能使用aop进行拦截,从网上搜索得知:使用spring mvc 启动了两个context:applicationContext 和WebapplicationContext。首先我们来了解applicationContext 和WebapplicationConte...
分类:编程语言   时间:2014-11-26 14:11:45    阅读次数:360
android获取USB设备的名称
1.注释内 。是三星设备可能不支持,需要更换的代码。2.mUsbManager。是getSystemService(Context.USB_SERVICE)获的。3. 从stackoverflow摘过来的。源地址找不到咧。 protected static final int STD_USB_REQ...
分类:移动开发   时间:2014-11-26 13:53:52    阅读次数:257
Android 判断网络连接
1 import android.content.Context; 2 import android.net.ConnectivityManager; 3 import android.net.NetworkInfo; 4 5 /** 6 * 网络工具类 添加网络状态许可: 8 * 9 ...
分类:移动开发   时间:2014-11-26 13:38:24    阅读次数:128
andriod 蓝牙开发之蓝牙搜索
蓝牙的搜索是通过广播来实现的。关键代码如下: 1、用于发现蓝牙的广播接受者 /** * 接收器 * 当搜索蓝牙设备完成时调用 */ private BroadcastReceiver _foundReceiver = new BroadcastReceiver() { public void onReceive(Context context, Intent intent) ...
分类:其他好文   时间:2014-11-26 11:20:35    阅读次数:137
HTML5 CANVAS
1 标签有三个属性,id,width,height,必须。2var canvas = document.getElementById("some_id");var context = canvas.getContext("2d");// 找起点context.moveTo(10, 20);// 找终...
分类:Web程序   时间:2014-11-26 11:00:49    阅读次数:191
使用一般处理程序HTTPHandler下载文件
一般来说我们可以用HTTPHandler来处理一些简单的逻辑,比如验证码、下载文件等。 以下载word文档为例讲解一下如何在HHTPHandler中下载文件,不限于word文档,如果下载其他文件,需要注意的是要将“context.Response.ContentType = "applicat...
分类:Web程序   时间:2014-11-26 10:45:53    阅读次数:144
【译】什么导致了Context泄露:Handler&内部类
思考下面代码1 public class SampleActivity extends Activity {2 3 private final Handler mLeakyHandler = new Handler() {4 @Override5 public void hand...
分类:其他好文   时间:2014-11-26 10:41:17    阅读次数:158
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!