说到JNDI,即熟悉又陌生,熟悉在常常使用,如EJB3.0中的@EJB注入,底层实现即是JNDI的方式;喜闻乐见的:Context ctx=new InitialContext();Object obj=(Object)ctx.lookup("java:comp/env/XXX");更是最经常使.....
分类:
其他好文 时间:
2014-10-25 17:02:00
阅读次数:
258
1. 简单形式var expr = from p in context.Products group p by p.CategoryID into g select g;foreach (var item in expr){ Console.WriteL...
分类:
数据库 时间:
2014-10-25 11:43:43
阅读次数:
310
1、创建Dynamic Web Project
2、导入spring和springmvc所需要的文件
3、配置web.xml文件
3.1 监听spring上下文容器
3.2 加载spring的xml文件到spring的上下文容器(spring-context.xml)
3.3 配置spring MVC的DispatcherServlet
3.4 加载spring...
分类:
编程语言 时间:
2014-10-24 22:18:24
阅读次数:
379
1. CASE WHEN ... THEN ...var expr = from p in context.Products select new { 商品ID = p.ProductID, ...
分类:
数据库 时间:
2014-10-24 22:10:19
阅读次数:
265
Spring 的@Scheduled注解实现定时任务运行和调度首先要配置我们的spring.xml --- 即spring的主配置文件(有的项目中叫做applicationContext.xml或context.xml)xmlns 多加以下的内容、[html]view plaincopyxmlns....
分类:
编程语言 时间:
2014-10-24 22:03:29
阅读次数:
455
###介绍常见inflate方法
在日常开发中经常会用到通过资源id去获取view的场景,我们通常有四种方式去获取view,分别是以下四种:
```
//1,通过系统服务获取布局加载器
LayoutInflater inflater = (LayoutInflater) getSystemService(Context.LAYOUT_INFLATER_SERVICE);...
分类:
其他好文 时间:
2014-10-24 19:01:27
阅读次数:
216
1. 单一条件查询var expr = context.Products .Where(p => p.ProductName == "LINQ to SQL");SELECT [Extent1].[ProductID] AS [ProductID], [Extent1].[Ca...
分类:
数据库 时间:
2014-10-24 18:17:27
阅读次数:
213
废话不多,上代码,前台:主要使用了死循环一秒钟读取JS一次去刷新页面(递归的思想)单独对ShowData这个DIV的数据进行刷新,个人觉得还是需要优化的。请大神指点 后台主要代码:1.头部的命名格式为JSON context.Response.ContentType = "application/....
分类:
Web程序 时间:
2014-10-24 18:12:07
阅读次数:
246
不管你是使用2D 还是WebGL,任何用过的人都知道很难调试,使用Canvas通常需要长长的难以跟踪的调用列表function draw() { context.clearRect(0, 0, 258, 258); context.fillStyle = "#EEEEEE"; context....
分类:
其他好文 时间:
2014-10-24 16:04:11
阅读次数:
218
1 package com.sixin.view; 2 3 import android.content.Context; 4 import android.graphics.Canvas; 5 import android.graphics.Color; 6 import andr...
分类:
其他好文 时间:
2014-10-24 14:13:19
阅读次数:
245