码迷,mamicode.com
首页 >  
搜索关键字:context    ( 11739个结果
spring framework 4 源码阅读
前面写了几篇spring 的介绍文章,感觉与主题不是很切合。重新整理下思路,从更容易理解的角度来写下文章。 spring 的骨架 spring 的骨架,也是spring 的核心包。主要包含三个内容 1.context:spring 的上线文-------导演 2.core:spring的核心包,主要包括spring所以用到的工具-------道具 3.beans:spring的bean实例 -------演员...
分类:编程语言   时间:2014-09-10 17:50:50    阅读次数:246
Android 判断Service是否已经运行
privatebooleanisServiceStart(){ActivityManagermyManager=(ActivityManager)getApplicationContext().getSystemService(Context.ACTIVITY_SERVICE);ArrayListr...
分类:移动开发   时间:2014-09-10 00:23:49    阅读次数:242
如何配置Tomcat的热启动
(1)我们初学者在学习javaweb的时候每次更改项目都需要 重新部署项目,这样的二话太麻烦 (2)使用tomcat的热启动就可以解决这个问题: 在tomcat目录下:找到 conf ----context.xml    打开 填写圈中的 就好了! (3)如果你的tomcat是自己的myeclipse中自带的话 就需要在自己的项目中找到 是在自己的工作区间...
分类:其他好文   时间:2014-09-09 21:37:59    阅读次数:386
Android Notification 通知栏
private void showNotification() { // 消息通知栏 // 定义NotificationManager String ns = Context.NOTIFICATION_SERVICE; Notification...
分类:移动开发   时间:2014-09-09 19:55:09    阅读次数:226
dp 与px互相转换
/** * 根据手机的分辨率从 dp 的单位 转成为 px(像素) */ public static int dip2px(Context context, float dpValue) { final float scale = context.getResources().getDisplayMetrics().density; ...
分类:其他好文   时间:2014-09-09 16:14:19    阅读次数:175
Android 判断Service是否已经运行
private boolean isServiceStart() { ActivityManager myManager = (ActivityManager) getApplicationContext() .getSystemService(Context.ACTIVITY_SERVICE); ArrayList runningService = (ArrayList) myM...
分类:移动开发   时间:2014-09-09 13:27:48    阅读次数:208
配置filter,修改response
在java中增加了过滤器filter,一般我们定义的filter都要继承filter接口从而实现dofilter方法,filter的配置,我们可以在web.xml中进行配置,配置如下: org.springframework.web.context.ContextLoaderListener encodingFilter org.springframework.we...
分类:其他好文   时间:2014-09-09 13:11:08    阅读次数:157
android文件的写入与读取---简单的文本读写context.openFileInput() context.openFileOutput() .
最终效果图,点击save会保存到文件中,点击show会从文件中读取出内容并显示。main.xml[xhtml] view plaincopyprint? activity代码[java] view plaincopyprint?packagecn.com.file;importjava...
分类:移动开发   时间:2014-09-09 11:35:58    阅读次数:344
java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener
出现NoClassDefFoundError,最好自己多查查 1.最常想到的方法是缺少包,这个也最好解决。2.可能包的版本不对,包里面并没有需要的类文件。打开包看看,有没有这个类。3.包多了,其他类里面也有类似的包路径,却没有此类,这个要耐心的找了。今天学习spring+cxf的时候遇到一个问题:在...
分类:编程语言   时间:2014-09-09 10:36:08    阅读次数:346
Tomcat 的context.xml
1. 在tomcat 5.5之前:---------------------------------------------------------------Context体如今/conf/server.xml中的Host里的元素,它由Context接口定义。每一个 1>path:即要建立的虚拟....
分类:其他好文   时间:2014-09-07 15:58:45    阅读次数:186
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!