Spring 能有效地组织J2EE应用各层的对象。无论是控制层的Action对象,还是业务层的Service对象,还是持久层的DAO对象,都可在Spring的 管理下有机地协调、执行。Spring将各层的对象以松耦合的方式组织在一起,Action对象无须关心Service对象的详细实现,Servic...
分类:
其他好文 时间:
2014-07-07 16:35:49
阅读次数:
226
一、题外话接续上一篇:MVC中Action参数绑定的过程 public IModelBinder DefaultBinder{ get { if (this._defaultBinder == null) { this._defaultB...
分类:
Web程序 时间:
2014-07-07 13:52:52
阅读次数:
188
1, 添加手势self.longPressRecognizer = [[UILongPressGestureRecognizer alloc]initWithTarget:self action:@selector(handleLongPress:)];[btn addGestureRecogniz...
分类:
其他好文 时间:
2014-06-30 21:13:14
阅读次数:
251
Spring AOP操作action时无法注入,报NullPointer异常当使用Spring AOP对action层进行操作时,会出现注入失败的问题,出现空指针异常。原因是一般struts2+spring应用中,spring的插件只负责为action的ioc部分,但并没有进行功能加强,即采用代理的...
分类:
编程语言 时间:
2014-06-30 20:56:46
阅读次数:
283
转自:http://www.cnblogs.com/wangyuyu/archive/2013/07/02/3167354.html一、理解Struts2拦截器1. Struts2拦截器是在访问某个Action或Action的某个方法,字段之前或之后实施拦截,并且Struts2拦截器是可插拔的,拦截...
分类:
编程语言 时间:
2014-06-30 20:39:11
阅读次数:
242
An Intent is a messaging object you
can use to request an action from another app component. Although intents facilitate communication
between components in several ways, there are three fundament...
分类:
其他好文 时间:
2014-06-30 19:28:20
阅读次数:
225
http://acm.sdut.edu.cn/sdutoj/problem.php?action=showproblem&problemid=1480#include #include int n;#define N 100001 //N的值取比哈希表长度略大的(质数)int a[100001],....
分类:
其他好文 时间:
2014-06-30 15:07:41
阅读次数:
145
小知识点总结1.android中MotionEvent.ACTION_CANCEL事件如何被触发?对于这个问题,android文档的说明很简短,想看明白很难。国外一网页说的还比较详细,写在这里分享给大家:原文是这样的:You receive this when a parent takes poss...
分类:
移动开发 时间:
2014-06-30 14:50:17
阅读次数:
205
MVC中的过滤器分四种分别为:IActionFilter(动作过滤器), IAuthorizationFilter(授权过滤器), IExceptionFilter(异常过滤器), IResultFilter(结果过滤器)字面翻译,凑合理解吧。在此就那IActionFilter举例,在这个接口中有两...
分类:
Web程序 时间:
2014-06-30 11:43:30
阅读次数:
370
Android系统原本就为手机设计,所以,在android系统中的任何App中,只要愿意,拨打指定电话非常方便。
核心就是使用Intent跳转,指定请求Action为Intent.ACTION_CALL 即可。
【源码下载】 http://www.code4apk.com/android-code/178
核心代码如下:
1
Intent
...
分类:
移动开发 时间:
2014-06-30 09:44:24
阅读次数:
246