将 ojdbc6.jar tomcat-jdbc-7.0.37.jar
拷贝到工程的WEB-INF\lib 下面一、在Tomcat的配置文件Tomcat7.0\conf\context.xml中添加信息:?1234567891011
注意这里的driverClassName写的是o...
分类:
数据库 时间:
2014-05-24 05:16:36
阅读次数:
477
Volley是Google推出的一个网络请求库,已经被放到了Android源码中,地址在这里,先看使用方法RequestQueue mRequestQueue
= Volley.newRequestQueue(context);JsonObjectRequest req = new JsonObje...
分类:
移动开发 时间:
2014-05-24 03:52:25
阅读次数:
473
上下文切换(Context Switch)
或者环境切换多任务系统中,上下文切换是指CPU的控制权由运行任务转移到另外一个就绪任务时所发生的事件。(时间片切换)在操作系统中,CPU切换到另一个进程需要保存当前进程的状态并恢复另一个进程的状态:当前运行任务转为就绪(或者挂起、删除)状态,另一个被选定的...
分类:
其他好文 时间:
2014-05-24 01:04:08
阅读次数:
337
android获取屏幕的高度和宽度用到WindowManager这个类,两种方法:1、WindowManager
wm = (WindowManager) getContext() .getSystemService(Context.WINDOW_SERVICE...
分类:
移动开发 时间:
2014-05-23 11:21:22
阅读次数:
233
一、映射定义概括1.1 映射定义(Mapping
declaration)对象和关系数据库之间的映射是用一个XML文档(XML
document)来定义的。这个映射文档被设计为易读的,并且可以手工修改。映射语言是以对象为中心的,
意味着映射是按照持久化类的定义来创建的,而非表的定义。让我们打开上节课...
分类:
系统相关 时间:
2014-05-23 08:27:50
阅读次数:
467
前言
Context在android中的作用不言而喻,当我们访问当前应用的资源,启动一个新的activity的时候都需要提供Context,而这个Context到底是什么呢,这个问题好像很好回答又好像难以说清楚。从字面意思,Context的意思是“上下文”,或者也可以叫做环境、场景等,尽管如此,还是有点抽象。从类的继承来说,Context作为一个抽象的基类,它的实现子类有三种:Applicati...
分类:
移动开发 时间:
2014-05-22 11:54:28
阅读次数:
394
文件配置如下:
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:context="http://www.springframework.org/schema/context"
xsi:sch...
分类:
编程语言 时间:
2014-05-22 07:38:58
阅读次数:
388
package com.example.ceshi;import
android.content.Context;import android.graphics.Canvas;import
android.graphics.Color;import android.graphics.Paint;im...
分类:
其他好文 时间:
2014-05-22 01:59:09
阅读次数:
288
package com.example.ceshi;import
android.app.Activity;import android.content.Context;import
android.opengl.Visibility;import android.util.AttributeSet...
分类:
其他好文 时间:
2014-05-22 01:55:56
阅读次数:
292
jQuery函数的第二个参数可以指定DOM元素的搜索范围。
第二个参数可分为以下类型
DOM referencejQuery wrapperdocument
代码示例
// search within all form elements, using a wrapper for context,
// alerts "8...
分类:
Web程序 时间:
2014-05-20 16:32:25
阅读次数:
377